1
0
mirror of https://github.com/danog/ext-pq.git synced 2024-12-11 08:59:45 +01:00
ext-pq/tests/stm_desc001.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

23 lines
358 B
PHP

--TEST--
desc statement
--SKIPIF--
<?php include "_skipif.inc"; ?>
--FILE--
<?php
echo "Test\n";
include "_setup.inc";
$c = new pq\Connection(PQ_DSN);
$s = $c->prepare("test1", "SELECT NOW() - \$1");
$r = $s->exec(array("2012-12-12 12:12:12"));
$d = $s->desc();
printf("%s\n", (new pq\Types($c))[$d[0]]->typname);
?>
DONE
--EXPECT--
Test
timestamptz
DONE