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);
|
2013-01-29 21:02:25 +01:00
|
|
|
$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);
|
2015-08-17 16:57:23 +02:00
|
|
|
var_dump($r->fetchCol($val));
|
|
|
|
var_dump($val);
|
2013-01-21 12:13:04 +01:00
|
|
|
?>
|
|
|
|
DONE
|
|
|
|
--EXPECT--
|
|
|
|
Test
|
|
|
|
|
2015-08-17 16:57:23 +02:00
|
|
|
bool(true)
|
|
|
|
string(4) "fooo"
|
2013-01-21 12:13:04 +01:00
|
|
|
DONE
|