From: Marcus Boerger Date: Sun, 9 Oct 2005 16:05:01 +0000 (+0000) Subject: - Apply workaround for test until someone fixes the issue (which is unrelated to... X-Git-Tag: RELEASE_0_9_1~182 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8f4f012a2ccd3b58d2a94d48dea7c51c651c3a71;p=php - Apply workaround for test until someone fixes the issue (which is unrelated to pg_*()) --- diff --git a/ext/pgsql/tests/01createdb.phpt b/ext/pgsql/tests/01createdb.phpt index 15849396c6..2ba6c61495 100644 --- a/ext/pgsql/tests/01createdb.phpt +++ b/ext/pgsql/tests/01createdb.phpt @@ -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++) {