1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-04 21:28:02 +02:00

PdoDriver: unset remaining references to PDO to allow disconnection

This commit is contained in:
Michal Kočárek
2015-12-11 12:08:26 +01:00
committed by David Grudl
parent c14dd863b6
commit f392728e0c

View File

@@ -66,7 +66,7 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver
if ($config['resource'] instanceof PDO) {
$this->connection = $config['resource'];
unset($config['resource'], $config['pdo']);
} else {
try {
$this->connection = new PDO($config['dsn'], $config['username'], $config['password'], $config['options']);