projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix #42
[m6w6/ext-pq]
/
tests
/
trans001.phpt
diff --git
a/tests/trans001.phpt
b/tests/trans001.phpt
index fc00a385c7be31acf028767cb25a0b21ddc8bc2a..001dec0ed14dbf070bc2b7841ed63d24cde3f4fb 100644
(file)
--- a/
tests/trans001.phpt
+++ b/
tests/trans001.phpt
@@
-10,6
+10,12
@@
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$c->exec("DROP TABLE IF EXISTS test CASCADE");
$c = new pq\Connection(PQ_DSN);
$c->exec("DROP TABLE IF EXISTS test CASCADE");
+$c->exec("SET client_min_messages TO NOTICE");
+try {
+ $c->exec("SET lc_messages TO 'C'");
+} catch (pq\Exception $e) {
+ // do not die if we are not superuser
+}
$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";
});