prepare v2.2.3
[m6w6/ext-pq] / tests / trans001.phpt
index 42e8f9eb946ba15b088f06117d6d0ae533738344..001dec0ed14dbf070bc2b7841ed63d24cde3f4fb 100644 (file)
@@ -11,7 +11,11 @@ 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'");
+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";
 });