1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-02 09:18:02 +01:00
ext-pq/tests/basic002.phpt
Michael Wallner d4f2435f5b pq\Types, pq\LOB
- added pq\Types instead of Connection->types
- added pq\LOB
2013-01-29 21:02:25 +01:00

24 lines
376 B
PHP

--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));
$r = $s->exec(array("fooo"));
printf("%s\n", $r->errorMessage);
printf("%s\n", $r->fetchCol());
?>
DONE
--EXPECT--
Test
fooo
DONE