com php-src: Fix pgsql notice test failure: ext/pgsql/tests/09notice.phpt
| From: | Nikita Popov | Date: | Thu, 22 Aug 2013 09:31:56 +0000 |
| Subject: | com php-src: Fix pgsql notice test failure: ext/pgsql/tests/09notice.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-73069@lists.php.net to get a copy of this message | ||
Commit: b668a26c2f1c03de505afcaeab6b96eb80d7a512
Author: Nikita Popov <nikic@php.net> Thu, 22 Aug 2013 11:31:56 +0200
Parents: e212320a0c5e83385e26ec534dc72a16964cc67f
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=b668a26c2f1c03de505afcaeab6b96eb80d7a512
Log:
Fix pgsql notice test failure
Changed paths:
M ext/pgsql/tests/09notice.phpt
Diff:
diff --git a/ext/pgsql/tests/09notice.phpt b/ext/pgsql/tests/09notice.phpt
index 67ef262..36d0c56 100644
--- a/ext/pgsql/tests/09notice.phpt
+++ b/ext/pgsql/tests/09notice.phpt
@@ -20,6 +20,9 @@ $db = pg_connect($conn_str);
_set_lc_messages();
+$res = pg_query($db, 'SET client_min_messages TO NOTICE;');
+var_dump($res);
+
pg_query($db, "BEGIN;");
pg_query($db, "BEGIN;");
@@ -33,6 +36,7 @@ echo "pg_last_notice() is Ok\n";
?>
--EXPECTF--
+resource(%d) of type (pgsql result)
Notice: pg_query(): %s already a transaction in progress in %s on line %d
%s already a transaction in progress
pg_last_notice() is Ok