From 2f857c28d6e4cb05301cc35198b25d1aacbade54 Mon Sep 17 00:00:00 2001 From: groupnet Date: Fri, 24 Jan 2020 13:41:57 +0100 Subject: [PATCH] PostgreDriver: fixed persistent connections (#348) - https://www.php.net/manual/en/function.pg-pconnect.php --- src/Dibi/Drivers/PostgreDriver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Dibi/Drivers/PostgreDriver.php b/src/Dibi/Drivers/PostgreDriver.php index 125e278e..2f79e908 100644 --- a/src/Dibi/Drivers/PostgreDriver.php +++ b/src/Dibi/Drivers/PostgreDriver.php @@ -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(); }