tests: set lc_messages to C for tests checking errors
[m6w6/ext-pq] / tests / trans001.phpt
index c22f2a95f3408f2434784c63545b209fdbfead1b..42e8f9eb946ba15b088f06117d6d0ae533738344 100644 (file)
@@ -9,7 +9,9 @@ echo "Test\n";
 include "_setup.inc";
 
 $c = new pq\Connection(PQ_DSN);
-$c->exec("DROP TABLE IF EXISTS test");
+$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";
 });