X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fbasic002.phpt;h=4a6fbd82708503faa8873b9af03728e85dc35986;hp=ce3b6c9152aeea2c798eb353c479af0b4c160839;hb=b7620687147565388f76031efc820e773232fa34;hpb=f7aeb22e11b82a9e91b6be69e373f11d88216c8a diff --git a/tests/basic002.phpt b/tests/basic002.phpt index ce3b6c9..4a6fbd8 100644 --- a/tests/basic002.phpt +++ b/tests/basic002.phpt @@ -8,11 +8,13 @@ echo "Test\n"; include "_setup.inc"; $c = new pq\Connection(PQ_DSN); -$s = $c->prepare("test1", "SELECT \$1",array($c->types->byName->text->oid)); +$t = new pq\Types($c); +$s = $c->prepare("test1", "SELECT \$1",array($t["text"]->oid)); $r = $s->exec(array("fooo")); printf("%s\n", $r->errorMessage); -printf("%s\n", $r->fetchCol()); +$r->fetchCol(0, $val); +printf("%s\n", $val); ?> DONE --EXPECT--