summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Gass2021-06-07 13:52:26 +0200
committerNathan Gass2021-06-07 13:52:26 +0200
commit030b4d6e52c48f835aca3177438109479f84ad6c (patch)
tree65377e305ca70f65fd8677e6c1367e383b635dbf
parent3595a05361ac372ccc2e2b8d6b5b9bc1f0de2c33 (diff)
downloaditools-030b4d6e52c48f835aca3177438109479f84ad6c.tar.gz
itools-030b4d6e52c48f835aca3177438109479f84ad6c.tar.bz2
itools-030b4d6e52c48f835aca3177438109479f84ad6c.zip
force new connection to be compatible with mysqli_connect, it_dbi does handle connection reuse itself
-rw-r--r--it_dbi_postgres.class2
1 files changed, 1 insertions, 1 deletions
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)
{