From: Michael Wallner Date: Thu, 25 Sep 2014 11:57:14 +0000 (+0200) Subject: add example X-Git-Url: https://git.m6w6.name/?a=commitdiff_plain;h=87a10c2f3c5232b75db9405ab4aaa209bb839a47;p=mdref%2Fmdref-pq add example --- 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