From 030b4d6e52c48f835aca3177438109479f84ad6c Mon Sep 17 00:00:00 2001 From: Nathan Gass Date: Mon, 7 Jun 2021 13:52:26 +0200 Subject: force new connection to be compatible with mysqli_connect, it_dbi does handle connection reuse itself --- it_dbi_postgres.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/it_dbi_postgres.class b/it_dbi_postgres.class index 2483ab9..73c76f2 100644 --- a/it_dbi_postgres.class +++ b/it_dbi_postgres.class @@ -96,7 +96,7 @@ function _escape_name($str) } function _connect_db($p) { - $result = @pg_connect("host=$p[server] user=$p[user] dbname=$p[db] password=$p[pw]"); + $result = @pg_connect("host=$p[server] user=$p[user] dbname=$p[db] password=$p[pw]", PGSQL_CONNECT_FORCE_NEW); if ($result) { -- cgit v1.2.3