tests: set lc_messages to C for tests checking errors
authorMichael Wallner <mike@php.net>
Thu, 24 Sep 2020 10:16:37 +0000 (12:16 +0200)
committerMichael Wallner <mike@php.net>
Thu, 24 Sep 2020 10:16:37 +0000 (12:16 +0200)
tests/cancel001.phpt
tests/trans001.phpt

index 2cc5896996ea34f494b3771db97511f119377c2a..a5bf4f35efd279c4eaf487d5f9552ee555322616 100644 (file)
@@ -9,6 +9,7 @@ echo "Test\n";
 include "_setup.inc";
 
 $c = new pq\Connection(PQ_DSN);
 include "_setup.inc";
 
 $c = new pq\Connection(PQ_DSN);
+$c->exec("SET lc_messages TO 'C'");
 
 $x = new pq\Cancel($c);
 
 
 $x = new pq\Cancel($c);
 
index 1dc97baff9d1fa1bbe8eb0be2c3758be8cb59e0d..42e8f9eb946ba15b088f06117d6d0ae533738344 100644 (file)
@@ -11,6 +11,7 @@ include "_setup.inc";
 $c = new pq\Connection(PQ_DSN);
 $c->exec("DROP TABLE IF EXISTS test CASCADE");
 $c->exec("SET client_min_messages TO NOTICE");
 $c = new pq\Connection(PQ_DSN);
 $c->exec("DROP TABLE IF EXISTS test CASCADE");
 $c->exec("SET client_min_messages TO NOTICE");
+$c->exec("SET lc_messages TO 'C'");
 $c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) {
        echo "Got notice: $notice\n";
 });
 $c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) {
        echo "Got notice: $notice\n";
 });