Revert "lib/db: Allow to configure persistent connections"

This reverts commit 4763b6b20a.
This commit is contained in:
Eric Lippmann 2018-06-22 14:43:32 +02:00
parent adfcc5596e
commit af35794006
1 changed files with 2 additions and 2 deletions

View File

@ -62,7 +62,8 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp
private static $driverOptions = array(
PDO::ATTR_TIMEOUT => 10,
PDO::ATTR_CASE => PDO::CASE_LOWER,
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION
PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION,
// TODO: allow configurable PDO::ATTR_PERSISTENT => true
);
/**
@ -141,7 +142,6 @@ class DbConnection implements Selectable, Extensible, Updatable, Reducible, Insp
'password' => $this->config->password,
'dbname' => $this->config->dbname,
'charset' => $this->config->charset ?: null,
'persistent' => (bool) $this->config->get('persistent', false),
'options' => & $genericAdapterOptions,
'driver_options' => & $driverOptions
);