4 <?php include "_skipif.inc"; ?>
11 $c = new pq\Connection(PQ_DSN);
12 $c->exec("SET lc_messages TO 'C'");
14 $x = new pq\Cancel($c);
16 $c->execAsync("SELECT pg_sleep(10)");
20 var_dump($c === $x->connection);
21 var_dump($c->getResult());
22 printf("%s\n", $c->errorMessage);
28 object(pq\Result)#%d (9) {
32 string(11) "FATAL_ERROR"
34 string(47) "ERROR: canceling statement due to user request"
42 string(39) "canceling statement due to user request"
47 ["statement_position"]=>
49 ["internal_position"]=>
66 string(10) "postgres.c"
70 string(17) "ProcessInterrupts"
83 ERROR: canceling statement due to user request