1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-11-30 04:19:49 +01:00

tests: set lc_messages to C for tests checking errors

This commit is contained in:
Michael Wallner 2020-09-24 12:16:37 +02:00
parent 04574bc5cd
commit 76e64a0a60
No known key found for this signature in database
GPG Key ID: 480E3E14B0A4C7C7
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$c->exec("SET lc_messages TO 'C'");
$x = new pq\Cancel($c);

View 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->exec("SET lc_messages TO 'C'");
$c->on(pq\Connection::EVENT_NOTICE, function($c, $notice) {
echo "Got notice: $notice\n";
});