mirror of
https://github.com/dg/dibi.git
synced 2025-08-05 05:37:39 +02:00
PdoDriver: unset remaining references to PDO to allow disconnection
This commit is contained in:
@@ -67,7 +67,7 @@ class PdoDriver implements Dibi\Driver, Dibi\ResultDriver
|
|||||||
|
|
||||||
if ($config['resource'] instanceof PDO) {
|
if ($config['resource'] instanceof PDO) {
|
||||||
$this->connection = $config['resource'];
|
$this->connection = $config['resource'];
|
||||||
|
unset($config['resource'], $config['pdo']);
|
||||||
} else {
|
} else {
|
||||||
try {
|
try {
|
||||||
$this->connection = new PDO($config['dsn'], $config['username'], $config['password'], $config['options']);
|
$this->connection = new PDO($config['dsn'], $config['username'], $config['password'], $config['options']);
|
||||||
|
Reference in New Issue
Block a user