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:
committed by
David Grudl
parent
c14dd863b6
commit
f392728e0c
@@ -66,7 +66,7 @@ class DibiPdoDriver extends DibiObject implements IDibiDriver, IDibiResultDriver
|
|||||||
|
|
||||||
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