2 Deallocate and prepare statement async
4 <?php include "_skipif.inc"; ?>
10 function complete($c) {
13 $r = array($c->socket);
15 if (stream_select($r, $w, $e, null)) {
19 } while ($c->getResult());
22 $c = new pq\Connection(PQ_DSN);
23 $s = $c->prepareAsync("test1", "SELECT 'test' || \$1");
26 $r = $s->exec(array("ing"));
30 $s->deallocateAsync();
34 $s->exec(array("ing"));
35 } catch (pq\Exception\BadMethodCallException $e) {
36 echo "Caught exception\n";
42 $r = $s->exec(array("ing"));