X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-pq;a=blobdiff_plain;f=tests%2Fbasic002.phpt;h=e43b27d453f60ff8fa5cd05669dfe46dd4b29331;hp=ce3b6c9152aeea2c798eb353c479af0b4c160839;hb=HEAD;hpb=f7aeb22e11b82a9e91b6be69e373f11d88216c8a diff --git a/tests/basic002.phpt b/tests/basic002.phpt index ce3b6c9..e43b27d 100644 --- a/tests/basic002.phpt +++ b/tests/basic002.phpt @@ -8,15 +8,18 @@ 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()); +var_dump($r->fetchCol($val)); +var_dump($val); ?> DONE --EXPECT-- Test -fooo +bool(true) +string(4) "fooo" DONE