1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-12 09:29:37 +01:00
ext-pq/tests/basic002.phpt

25 lines
386 B
Plaintext
Raw Normal View History

2013-01-21 12:13:04 +01:00
--TEST--
basic functionality
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$t = new pq\Types($c);
$s = $c->prepare("test1", "SELECT \$1",array($t["text"]->oid));
2013-01-21 12:13:04 +01:00
$r = $s->exec(array("fooo"));
printf("%s\n", $r->errorMessage);
$r->fetchCol($val);
printf("%s\n", $val);
2013-01-21 12:13:04 +01:00
?>
DONE
--EXPECT--
Test
fooo
DONE