We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c843017 + f149330 commit bbacb69Copy full SHA for bbacb69
1 file changed
lib/Database/ez_pgsql.php
@@ -103,7 +103,7 @@ public function connect(
103
$connect_string = "host=" . $host . " port=" . $port . " dbname=" . $name . " user=" . $user . " password=" . $password;
104
105
// Try to establish the server database handle
106
- if (!$this->dbh = \pg_connect($connect_string, true)) {
+ if (!$this->dbh = \pg_connect($connect_string, PGSQL_CONNECT_FORCE_NEW)) {
107
$this->register_error(\FAILED_CONNECTION . ' in ' . __FILE__ . ' on line ' . __LINE__);
108
} else {
109
$this->_connected = true;
0 commit comments