Skip to content

Commit bbacb69

Browse files
authored
Merge pull request #199 from hubaishan/fix/fatal_error
[PHP8, postgreSQL] Fix fatal error
2 parents c843017 + f149330 commit bbacb69

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/Database/ez_pgsql.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ public function connect(
103103
$connect_string = "host=" . $host . " port=" . $port . " dbname=" . $name . " user=" . $user . " password=" . $password;
104104

105105
// Try to establish the server database handle
106-
if (!$this->dbh = \pg_connect($connect_string, true)) {
106+
if (!$this->dbh = \pg_connect($connect_string, PGSQL_CONNECT_FORCE_NEW)) {
107107
$this->register_error(\FAILED_CONNECTION . ' in ' . __FILE__ . ' on line ' . __LINE__);
108108
} else {
109109
$this->_connected = true;

0 commit comments

Comments
 (0)