com php-src: Travis has old PostgreSQL server. Avoid test error.: ext/pgsql/tests/01createdb.phpt

From: Date: Sun, 16 Feb 2014 09:08:50 +0000
Subject: com php-src: Travis has old PostgreSQL server. Avoid test error.: ext/pgsql/tests/01createdb.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-76023@lists.php.net to get a copy of this message
Commit: 170db1c57737a7a9d0625fa22e1093eb29eb71e0 Author: Yasuo Ohgaki <yohgaki@php.net> Sun, 16 Feb 2014 18:08:50 +0900 Parents: 4a2b39269f16fb962b352d9b5501af2386b953f4 Branches: PHP-5.6 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=170db1c57737a7a9d0625fa22e1093eb29eb71e0 Log: Travis has old PostgreSQL server.. Avoid test error. Changed paths: M ext/pgsql/tests/01createdb.phpt Diff: diff --git a/ext/pgsql/tests/01createdb.phpt b/ext/pgsql/tests/01createdb.phpt index 629f7c9..8f7a262 100644 --- a/ext/pgsql/tests/01createdb.phpt +++ b/ext/pgsql/tests/01createdb.phpt @@ -20,7 +20,8 @@ else { echo pg_last_error()."\n"; } -if (!@pg_num_rows(@pg_query($db, "SELECT * FROM ".$table_name_92))) +$v = pg_version(); +if (version_compare($v['server'], '9.2', '>=') && !@pg_num_rows(@pg_query($db, "SELECT * FROM ".$table_name_92))) { pg_query($db,$table_def_92); // Create table here }

« previous php.cvs (#76023) next »