mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-02-02 03:19:56 +01:00
fix to use our db class with the new php5 mysqli extension
This commit is contained in:
parent
7f835c1020
commit
f7ec5b42f5
@ -237,7 +237,10 @@
|
|||||||
$type ='sapdb'; // name in ADOdb
|
$type ='sapdb'; // name in ADOdb
|
||||||
$php_extension = 'odbc';
|
$php_extension = 'odbc';
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
case 'mysqli':
|
||||||
|
$this->Type = 'mysql';
|
||||||
|
// fall through
|
||||||
default:
|
default:
|
||||||
if ($this->Port) $Host .= ':'.$this->Port;
|
if ($this->Port) $Host .= ':'.$this->Port;
|
||||||
break;
|
break;
|
||||||
@ -319,6 +322,7 @@
|
|||||||
switch($adodb_driver)
|
switch($adodb_driver)
|
||||||
{
|
{
|
||||||
case 'mysql':
|
case 'mysql':
|
||||||
|
case 'mysqli':
|
||||||
$this->capabilities['sub_queries'] = $db_version >= 4.1;
|
$this->capabilities['sub_queries'] = $db_version >= 4.1;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user