Skip to content

Commit 2f857c2

Browse files
groupnetdg
authored andcommitted
PostgreDriver: fixed persistent connections (#348)
- https://www.php.net/manual/en/function.pg-pconnect.php
1 parent efe1cbd commit 2f857c2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dibi/Drivers/PostgreDriver.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function __construct(array $config)
6969
if (empty($config['persistent'])) {
7070
$this->connection = pg_connect($string, PGSQL_CONNECT_FORCE_NEW);
7171
} else {
72-
$this->connection = pg_pconnect($string, PGSQL_CONNECT_FORCE_NEW);
72+
$this->connection = pg_pconnect($string);
7373
}
7474
restore_error_handler();
7575
}

0 commit comments

Comments
 (0)