From 87a10c2f3c5232b75db9405ab4aaa209bb839a47 Mon Sep 17 00:00:00 2001 From: Michael Wallner Date: Thu, 25 Sep 2014 13:57:14 +0200 Subject: [PATCH] add example --- pq/Result/desc.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/pq/Result/desc.md b/pq/Result/desc.md index d73363f..3aa81b2 100644 --- a/pq/Result/desc.md +++ b/pq/Result/desc.md @@ -16,3 +16,21 @@ None. ## Throws: * pq\Exception\BadMethodCallException + + +## Example: + + prepare("test1", "SELECT NOW() - \$1"); + $description = $statement->desc(); + + printf("%s\n", $types[$description[0]]->typname); + + ?> + +Yields: + + timestamptz -- 2.30.2