use the same method signature in fetchCol() and bind()
[m6w6/ext-pq] / tests / unbuffered001.phpt
index a009b632426be37d1d36b35adb579693fca957cd..b0df231c007a863b433051a0da45302709946684 100644 (file)
@@ -16,7 +16,8 @@ var_dump($c->unbuffered);
 $c->execAsync("SELECT a from generate_series(1,10) a", function($res) {
        switch ($res->status) {
        case pq\Result::SINGLE_TUPLE:
-               printf("%s\n", $res->fetchCol());
+               $res->fetchCol("a", $val);
+               printf("%s\n", $val);
                break;
        case pq\Result::TUPLES_OK:
                printf("-> fetching done\n");