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

23 lines
358 B
Plaintext
Raw Normal View History

2013-01-21 12:13:04 +01:00
--TEST--
2013-01-23 00:02:55 +01:00
desc statement
2013-01-21 12:13:04 +01:00
--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);
2013-01-21 12:13:04 +01:00
?>
DONE
--EXPECT--
Test
timestamptz
DONE