1 # void pq\Cancel::cancel()
3 Perform the cancellation request.
11 * pq\Exception\InvalidArgumentException
12 * pq\Exception\BadMethodCallException
13 * pq\Exception\RuntimeException
20 $conn = new pq\Connection;
21 $cancel = new pq\Cancel($conn);
23 $conn->execAsync("SELECT pg_sleep(1)");
26 var_dump($conn->getResult());
32 object(pq\Result)#4 (8) {
36 string(11) "FATAL_ERROR"
38 string(47) "ERROR: canceling statement due to user request"