fix fetchCol to return true/false and pass value int pass-by-ref param
[m6w6/ext-pq] / tests / unbuffered001.phpt
index a009b632426be37d1d36b35adb579693fca957cd..11840adba79f8832848d33ed544df5770bc45d49 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($val);
+               printf("%s\n", $val);
                break;
        case pq\Result::TUPLES_OK:
                printf("-> fetching done\n");