fix to use our db class with the new php5 mysqli extension

This commit is contained in:
Ralf Becker 2005-10-01 09:09:45 +00:00
parent 7f835c1020
commit f7ec5b42f5

View File

@ -237,7 +237,10 @@
$type ='sapdb'; // name in ADOdb
$php_extension = 'odbc';
break;
case 'mysqli':
$this->Type = 'mysql';
// fall through
default:
if ($this->Port) $Host .= ':'.$this->Port;
break;
@ -319,6 +322,7 @@
switch($adodb_driver)
{
case 'mysql':
case 'mysqli':
$this->capabilities['sub_queries'] = $db_version >= 4.1;
break;