fix due to caching and reusing of connection not correctly set $this->Type == "mysql"

This commit is contained in:
Ralf Becker 2015-10-12 18:34:47 +00:00
parent 24befa4298
commit 9f1b92aa1d

View File

@ -560,7 +560,12 @@ class egw_db
$Host = preg_replace('/password=[^ ]+/','password=$Password',$Host); // eg. postgres dsn contains password
throw new egw_exception_db_connection("ADOdb::$connect($Host, $User, \$Password, $Database) reconnect failed.");
}
// fix due to caching and reusing of connection not correctly set $this->Type == 'mysql'
if ($this->Type == 'mysqli')
{
$this->setupType = $this->Type;
$this->Type = 'mysql';
}
if ($new_connection)
{
foreach(get_included_files() as $file)