Doc #64858 [Opn->Csd]: Reusability of query params should be clarified
Edit report at https://bugs.php.net/bug.php?id=64858&edit=1
ID: 64858
Updated by: aharvey@php.net
Reported by: victor dot engmark+phpbugs at gmail dot com
Summary: Reusability of query params should be clarified
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation problem
PHP Version: Irrelevant
-Assigned To:
+Assigned To: aharvey
Block user comment: N
Private report: N
New Comment:
This bug has been fixed in the documentation's XML sources. Since the
online and downloadable versions of the documentation need some time
to get updated, we would like to ask you to be a bit patient.
Thank you for the report, and for helping us make our documentation better.
Previous Comments:
------------------------------------------------------------------------
[2013-05-16 19:58:22] aharvey@php.net
Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=330247
Log: Note that placeholders may be reused in pg_query_params().
Fixes doc bug #64858 (Reusability of query params should be clarified).
------------------------------------------------------------------------
[2013-05-16 11:23:36] victor dot engmark+phpbugs at gmail dot com
Description:
------------
---
From manual page: http://www.php.net/function.pg-query-params
---
After testing pg_query_params, I found that it supports reusing parameters. In other words, the
script below works as expected (no error message). This was IMO not clear from the documentation.
Test script:
---------------
pg_query_params(
'SELECT * FROM tname WHERE foo = $1 OR bar = $1',
array('value'));
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=64858&edit=1
Thread (2 messages)