From 4cf9520cf213c37351b45ee9773bd3ff5470faef Mon Sep 17 00:00:00 2001 From: Antony Dovgal Date: Thu, 25 Mar 2004 08:24:12 +0000 Subject: [PATCH] fix bug #27672 (oci_parse doesn't validate query indeed, it only prepares and returns statement identifier) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@154543 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/oci8/functions/oci-parse.xml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/reference/oci8/functions/oci-parse.xml b/reference/oci8/functions/oci-parse.xml index 6dd7122133..de6e6b8a98 100644 --- a/reference/oci8/functions/oci-parse.xml +++ b/reference/oci8/functions/oci-parse.xml @@ -1,9 +1,9 @@ - + oci_parse - Parses a query and returns an Oracle statement identifier + Prepares Oracle statement for execution Description @@ -13,12 +13,20 @@ stringquery - oci_parse parses the query + oci_parse prepares the query using connection and returns the statement - identifier if the query is valid or &false; if not. - The query can be any valid SQL statement or PL/SQL - block. + identifier, which can be used with + oci_bind_by_name, oci_execute + and other functions. + + + This function does not validate + query. The only way to find out if + query is valid SQL or PL/SQL statement - is to + execute it. + + oci_parse returns &false; on error.