From 3484bcec1681aa82310c1e47ec23ead25975129c Mon Sep 17 00:00:00 2001 From: Adam Harvey Date: Thu, 16 May 2013 19:58:22 +0000 Subject: [PATCH] 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 --- reference/pgsql/functions/pg-query-params.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/reference/pgsql/functions/pg-query-params.xml b/reference/pgsql/functions/pg-query-params.xml index 1698bd07df..3a77a85df4 100644 --- a/reference/pgsql/functions/pg-query-params.xml +++ b/reference/pgsql/functions/pg-query-params.xml @@ -27,10 +27,12 @@ higher connections; it will fail when using earlier versions. - If parameters are used, they are referred to in the query - string as $1, $2, etc. params specifies the actual values of the - parameters. A &null; value in this array means the corresponding parameter is SQL - NULL. + If parameters are used, they are referred to in the + query string as $1, $2, etc. The same parameter may + appear more than once in the query; the same value + will be used in that case. params specifies the + actual values of the parameters. A &null; value in this array means the + corresponding parameter is SQL NULL. The primary advantage of pg_query_params over pg_query