1 # void pq\Statement::deallocate()
3 Free the server resources used by the prepared statement, so it can no longer be executed.
4 This is done implicitly when the object is destroyed.
12 * pq\Exception\InvalidArgumentException
13 * pq\Exception\BadMethodCallException
14 * pq\Exception\RuntimeException
20 $connection = new pq\Connection;
21 $types = new pq\Types($connection);
22 $statement = $connection->prepare("st1",
23 "SELECT \$1, \$2", [pq\Types::XML, pq\Types::JSON]);
25 // some code which executes the statement
27 $statement->deallocate();