]> granicus.if.org Git - php/commitdiff
- Apply workaround for test until someone fixes the issue (which is unrelated to...
authorMarcus Boerger <helly@php.net>
Sun, 9 Oct 2005 16:05:01 +0000 (16:05 +0000)
committerMarcus Boerger <helly@php.net>
Sun, 9 Oct 2005 16:05:01 +0000 (16:05 +0000)
ext/pgsql/tests/01createdb.phpt

index 15849396c61138b15eaa52b4c43eaf065a43d79c..2ba6c61495d6563f04d75f5377534f1380b341d1 100644 (file)
@@ -9,7 +9,8 @@ PostgreSQL create db
 include('config.inc');
 
 $db = pg_connect($conn_str);
-if (!@pg_num_rows(@pg_query($db, "SELECT * FROM ".$table_name))) 
+$res = @pg_query($db, "SELECT * FROM ".$table_name);
+if (!@pg_num_rows($res)) 
 {
        @pg_query($db,$table_def); // Create table here
        for ($i=0; $i < $num_test_record; $i++) {