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:35:11 +00:00
parent af77a3b5f9
commit 2cc00a3c52

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)