Note that placeholders may be reused in pg_query_params().

Fixes doc bug #64858 (Reusability of query params should be clarified).


git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@330247 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Adam Harvey 2013-05-16 19:58:22 +00:00
parent a445db39cd
commit 3484bcec16

View file

@ -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>