projects
/
m6w6
/
ext-pq
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
fix zend_object_iterator.key with PHP-5.5
[m6w6/ext-pq]
/
tests
/
basic002.phpt
diff --git
a/tests/basic002.phpt
b/tests/basic002.phpt
index ce3b6c9152aeea2c798eb353c479af0b4c160839..a6455ab816575a8f1187924852c74bb194bc5d0b 100644
(file)
--- a/
tests/basic002.phpt
+++ b/
tests/basic002.phpt
@@
-8,7
+8,8
@@
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
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);
$r = $s->exec(array("fooo"));
printf("%s\n", $r->errorMessage);