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