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 fetchCol to return true/false and pass value int pass-by-ref param
[m6w6/ext-pq]
/
tests
/
basic002.phpt
diff --git
a/tests/basic002.phpt
b/tests/basic002.phpt
index ce3b6c9152aeea2c798eb353c479af0b4c160839..2afb78503e1baba56fb2ffea863c818c653100c4 100644
(file)
--- a/
tests/basic002.phpt
+++ b/
tests/basic002.phpt
@@
-8,11
+8,13
@@
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);
-printf("%s\n", $r->fetchCol());
+$r->fetchCol($val);
+printf("%s\n", $val);
?>
DONE
--EXPECT--
?>
DONE
--EXPECT--