1
0
mirror of https://github.com/dg/dibi.git synced 2025-08-05 13:47:33 +02:00

PostgreDriver: fixed persistent connections (#348)

- https://www.php.net/manual/en/function.pg-pconnect.php
This commit is contained in:
groupnet
2020-01-24 13:41:57 +01:00
committed by David Grudl
parent efe1cbdc20
commit 2f857c28d6

View File

@@ -69,7 +69,7 @@ class PostgreDriver implements Dibi\Driver
if (empty($config['persistent'])) {
$this->connection = pg_connect($string, PGSQL_CONNECT_FORCE_NEW);
} else {
$this->connection = pg_pconnect($string, PGSQL_CONNECT_FORCE_NEW);
$this->connection = pg_pconnect($string);
}
restore_error_handler();
}