use the same method signature in fetchCol() and bind()
[m6w6/ext-pq] / tests / encoding001.phpt
index 53bcef5f6222751c29073084658e8f634778cb7a..b4067bcebde53ec7a42c4241d477e63d06631585 100644 (file)
@@ -11,7 +11,7 @@ $c = new pq\Connection(PQ_DSN);
 var_dump($c->encoding);
 $c->encoding = "utf8";
 var_dump($c->encoding);
-$c->exec("SELECT 'ßüpä…'")->fetchCol($val);
+$c->exec("SELECT 'ßüpä…'")->fetchCol(0, $val);
 var_dump($val);
 $tmp = 12345;
 $c->encoding = $tmp;