1 # array pq\Result::desc()
3 Describe a prepared statement.
6 This will only return meaningful information for a result of pq\Statement::desc().
14 * array, list of parameter type OIDs for the prepared statement.
18 * pq\Exception\BadMethodCallException
25 $connection = new pq\Connection;
26 $types = new pq\Types($connection);
27 $statement = $connection->prepare("test1", "SELECT NOW() - \$1");
28 $description = $statement->desc();
30 printf("%s\n", $types[$description[0]]->typname);