From 0f47247ee2c46704659b0935f3d11e962fcd354d Mon Sep 17 00:00:00 2001 From: mr-russ Date: Wed, 9 Feb 2005 08:27:57 +0000 Subject: [PATCH] Apply local connections on different ports patch to persistent connections as well as to non-persistent. --- libraries/adodb/drivers/adodb-postgres64.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/adodb/drivers/adodb-postgres64.inc.php b/libraries/adodb/drivers/adodb-postgres64.inc.php index 0396fc7e..a252f7a9 100644 --- a/libraries/adodb/drivers/adodb-postgres64.inc.php +++ b/libraries/adodb/drivers/adodb-postgres64.inc.php @@ -418,7 +418,7 @@ a different OID if a database must be reloaded. */ if ($str) { $host = split(":", $str); if ($host[0]) $str = "host='" . addslashes($host[0]) . "'"; - else $str = 'localhost'; + else $str = ''; if (isset($host[1])) $str .= " port='" . addslashes($host[1]) . "'"; } if ($user) $str .= " user='" . addslashes($user) . "'"; -- 2.39.5