cvs: php-src /ext/pgsql/tests 01createdb.phpt
| From: | Marcus Boerger | Date: | Sun, 09 Oct 2005 16:05:04 +0000 |
| Subject: | cvs: php-src /ext/pgsql/tests 01createdb.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-34445@lists.php.net to get a copy of this message | ||
helly Sun Oct 9 12:05:04 2005 EDT
Modified files:
/php-src/ext/pgsql/tests 01createdb.phpt
Log:
- Apply workaround for test until someone fixes the issue (which is unrelated to pg_*())
http://cvs.php.net/diff.php/php-src/ext/pgsql/tests/01createdb.phpt?r1=1.2&r2=1.3&ty=u
Index: php-src/ext/pgsql/tests/01createdb.phpt
diff -u php-src/ext/pgsql/tests/01createdb.phpt:1.2 php-src/ext/pgsql/tests/01createdb.phpt:1.3
--- php-src/ext/pgsql/tests/01createdb.phpt:1.2 Mon May 19 20:14:46 2003
+++ php-src/ext/pgsql/tests/01createdb.phpt Sun Oct 9 12:05:01 2005
@@ -9,7 +9,8 @@
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++) {