X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fcancel001.phpt;h=4ca9664aa8a390a7592982b27f35a9a323f23d46;hp=2cc5896996ea34f494b3771db97511f119377c2a;hb=HEAD;hpb=6ab3ae07622e825b32ec6c9bf781def373dad616 diff --git a/tests/cancel001.phpt b/tests/cancel001.phpt index 2cc5896..4ca9664 100644 --- a/tests/cancel001.phpt +++ b/tests/cancel001.phpt @@ -9,6 +9,11 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); +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);