mirror of
https://github.com/Icinga/icingaweb2.git
synced 2026-06-09 08:34:04 -04:00
Revert "lib/db: Allow to configure persistent connections"
This reverts commit 4763b6b20a.
This commit is contained in:
parent
adfcc5596e
commit
af35794006
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in a new issue