1
0
mirror of https://github.com/dg/dibi.git synced 2025-02-23 10:26:21 +01: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
parent 6a8a136c0a
commit efae5808f0

View File

@ -67,7 +67,7 @@ class PdoDriver implements Dibi\Driver, Dibi\ResultDriver
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']);