Supress pg_connect PHP Warning when connection fail.
authorJehan-Guillaume (ioguix) de Rorthais <jgdr@dalibo.com>
Tue, 7 Sep 2010 17:02:10 +0000 (19:02 +0200)
committerioguix <ioguix@free.fr>
Tue, 7 Sep 2010 17:02:10 +0000 (19:02 +0200)
We should add a better error message support in next realse

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

index 82fc328a7e234de60963b23e50f8c5574da6b1e4..1343bc35b7f13d58873b72e9ab8a41266bd9d8df 100644 (file)
@@ -689,7 +689,7 @@ WHERE (c2.relname=\'%s\' or c2.relname=lower(\'%s\'))';
                                
                                $str .= str_repeat(' ',$ncnt);
                        }
-                       $this->_connectionID = pg_connect($str);
+                       $this->_connectionID = @pg_connect($str);
                }
                if ($this->_connectionID === false) return false;
                $this->Execute("set datestyle='ISO'");
@@ -1068,4 +1068,4 @@ class ADORecordSet_postgres64 extends ADORecordSet{
        }
 
 }
-?>
\ No newline at end of file
+?>