6 defined("pq\\Result::SINGLE_TUPLE") or die("skip need pq\\Result::SINGLE_TUPLE");
14 $c = new pq\Connection(PQ_DSN);
15 $c->unbuffered = true;
16 $c->execAsync("SELECT a FROM generate_series(1,3) a", function ($res) {
21 $r = array($c->socket);
23 if (stream_select($r, $w, $e, null)) {
27 } while ($c->getResult());
33 object(pq\Result)#%d (9) {
37 string(12) "SINGLE_TUPLE"
52 ["statement_position"]=>
54 ["internal_position"]=>
88 object(pq\Result)#%d (9) {
92 string(12) "SINGLE_TUPLE"
101 ["message_primary"]=>
107 ["statement_position"]=>
109 ["internal_position"]=>
123 ["constraint_name"]=>
129 ["source_function"]=>
143 object(pq\Result)#%d (9) {
147 string(12) "SINGLE_TUPLE"
156 ["message_primary"]=>
162 ["statement_position"]=>
164 ["internal_position"]=>
178 ["constraint_name"]=>
184 ["source_function"]=>
198 object(pq\Result)#%d (9) {
202 string(9) "TUPLES_OK"
211 ["message_primary"]=>
217 ["statement_position"]=>
219 ["internal_position"]=>
233 ["constraint_name"]=>
239 ["source_function"]=>