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:
parent
04574bc5cd
commit
76e64a0a60
@ -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);
|
||||
|
||||
|
@ -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";
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user