X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fbasic002.phpt;h=a6455ab816575a8f1187924852c74bb194bc5d0b;hb=0fe5cdcdf5b8b20c80ff592de3187f2200321d6a;hp=ce3b6c9152aeea2c798eb353c479af0b4c160839;hpb=f7aeb22e11b82a9e91b6be69e373f11d88216c8a;p=m6w6%2Fext-pq diff --git a/tests/basic002.phpt b/tests/basic002.phpt index ce3b6c9..a6455ab 100644 --- a/tests/basic002.phpt +++ b/tests/basic002.phpt @@ -8,7 +8,8 @@ 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);