X-Git-Url: https://git.m6w6.name/?a=blobdiff_plain;f=tests%2Fbasic002.phpt;h=a6455ab816575a8f1187924852c74bb194bc5d0b;hb=d4f2435f5b1d4ca6b0a845772fc00efac703a05c;hp=ce3b6c9152aeea2c798eb353c479af0b4c160839;hpb=6bfbeb8ffcd60f29887a65dc6838c64c4522ae0b;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);