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 library version in PHPinfo
[m6w6/ext-pq]
/
tests
/
cancel001.phpt
diff --git
a/tests/cancel001.phpt
b/tests/cancel001.phpt
index a5bf4f35efd279c4eaf487d5f9552ee555322616..4ca9664aa8a390a7592982b27f35a9a323f23d46 100644
(file)
--- a/
tests/cancel001.phpt
+++ b/
tests/cancel001.phpt
@@
-9,7
+9,11
@@
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
-$c->exec("SET lc_messages TO 'C'");
+try {
+ $c->exec("SET lc_messages TO 'C'");
+} catch (pq\Exception $e) {
+ // no not fail if we are not superuser
+}
$x = new pq\Cancel($c);