Fixed ability to use persistent database connection with an object of the Database class

This commit is contained in:
Dmitriy Simushev 2012-09-07 14:34:39 +00:00
parent 92019f99a4
commit b3d7a7a124

View File

@ -183,7 +183,8 @@ Class Database{
$instance->dbh = new PDO(
"mysql:host={$instance->dbHost};dbname={$instance->dbName}",
$instance->dbLogin,
$instance->dbPass
$instance->dbPass,
array(PDO::ATTR_PERSISTENT => $instance->usePersistentConnection)
);
if ($instance->forceCharsetInConnection) {