Apply local connections on different ports patch to persistent connections
authormr-russ <mr-russ>
Wed, 9 Feb 2005 08:27:57 +0000 (08:27 +0000)
committermr-russ <mr-russ>
Wed, 9 Feb 2005 08:27:57 +0000 (08:27 +0000)
as well as to non-persistent.

libraries/adodb/drivers/adodb-postgres64.inc.php

index 0396fc7e3d27d7b116fe3f5f56ee343ff211a12e..a252f7a9ba305e94306690d771e9066b49cc46f0 100644 (file)
@@ -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) . "'";