From f392728e0c5e67bbf78d8c6a1a467b135e631bcc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20Ko=C4=8D=C3=A1rek?= Date: Fri, 11 Dec 2015 12:08:26 +0100 Subject: [PATCH] PdoDriver: unset remaining references to PDO to allow disconnection --- dibi/drivers/DibiPdoDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dibi/drivers/DibiPdoDriver.php b/dibi/drivers/DibiPdoDriver.php index de73954d..192bb70a 100644 --- a/dibi/drivers/DibiPdoDriver.php +++ b/dibi/drivers/DibiPdoDriver.php @@ -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']);