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:
parent
6a8a136c0a
commit
efae5808f0
@ -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']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user