svn: /phpdoc/en/trunk/reference/pgsql/functions/ pg-query-params.xml
| From: | Adam Harvey | Date: | Thu, 16 May 2013 19:58:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/pgsql/functions/ pg-query-params.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-11271@lists.php.net to get a copy of this message | ||
aharvey Thu, 16 May 2013 19:58:22 +0000
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).
Bug: https://bugs.php.net/64858 (Open) Reusability of query
params should be clarified
Changed paths:
U phpdoc/en/trunk/reference/pgsql/functions/pg-query-params.xml
Modified: phpdoc/en/trunk/reference/pgsql/functions/pg-query-params.xml
===================================================================
--- phpdoc/en/trunk/reference/pgsql/functions/pg-query-params.xml 2013-05-16 19:55:27 UTC (rev
330246)
+++ phpdoc/en/trunk/reference/pgsql/functions/pg-query-params.xml 2013-05-16 19:58:22 UTC (rev
330247)
@@ -27,10 +27,12 @@
higher connections; it will fail when using earlier versions.
</para>
<para>
- If parameters are used, they are referred to in the <parameter>query</parameter>
- string as $1, $2, etc. <parameter>params</parameter> specifies the actual values
of the
- parameters. A &null; value in this array means the corresponding parameter is SQL
- <literal>NULL</literal>.
+ If parameters are used, they are referred to in the
+ <parameter>query</parameter> string as $1, $2, etc. The same parameter may
+ appear more than once in the <parameter>query</parameter>; the same value
+ will be used in that case. <parameter>params</parameter> specifies the
+ actual values of the parameters. A &null; value in this array means the
+ corresponding parameter is SQL <literal>NULL</literal>.
</para>
<para>
The primary advantage of <function>pg_query_params</function> over
<function>pg_query</function>