From de268ac04a55a90f703930a34a40a200bd2ae71e Mon Sep 17 00:00:00 2001 From: Ard Biesheuvel Date: Mon, 1 Sep 2003 23:59:18 +0000 Subject: [PATCH] Clarify description. Added PHP5 note git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@139418 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/ibase/functions/ibase-execute.xml | 23 +++++++++++++++++++-- reference/ibase/functions/ibase-query.xml | 16 ++++++++++---- 2 files changed, 33 insertions(+), 6 deletions(-) diff --git a/reference/ibase/functions/ibase-execute.xml b/reference/ibase/functions/ibase-execute.xml index c7e2b6d1c5..8dfff51804 100644 --- a/reference/ibase/functions/ibase-execute.xml +++ b/reference/ibase/functions/ibase-execute.xml @@ -1,5 +1,5 @@ - + @@ -14,10 +14,18 @@ intbind_args - Execute a query prepared by ibase_prepare. + Execute a query prepared by ibase_prepare. If + the query raises an error, returns &false;. If it is successful and + there is a (possibly empty) result set (such as with a SELECT query), + returns a result identifier. If the query was successful and there were + no results, returns &true;. + + This is a lot more effective than using ibase_query if you are repeating a same kind of query several times with only some parameters changing. + + <function>ibase_execute</function> example @@ -39,6 +47,17 @@ + + + In PHP 5.0.0 and up, this function returns the number of rows affected by + the query (if > 0 and applicable to the statement type). A query that succeeded, + but did not affect any rows (eg. an UPDATE of a non-existent record) will return + &true;. + + + + See also ibase_query. + diff --git a/reference/ibase/functions/ibase-query.xml b/reference/ibase/functions/ibase-query.xml index 5b7824842c..16a60644b8 100644 --- a/reference/ibase/functions/ibase-query.xml +++ b/reference/ibase/functions/ibase-query.xml @@ -1,5 +1,5 @@ - + @@ -15,9 +15,9 @@ intbind_args - Performs a query on an InterBase database. If the query is not - successful, returns &false;. If it is successful and there are resulting - rows (such as with a SELECT query), returns a result identifier. If + Performs a query on an InterBase database. If the query raises an error, + returns &false;. If it is successful and there is a (possibly empty) + result set (such as with a SELECT query), returns a result identifier. If the query was successful and there were no results, returns &true;. @@ -39,6 +39,14 @@ + + + In PHP 5.0.0 and up, this function returns the number of rows affected by + the query (if > 0 and applicable to the statement type). A query that succeeded, + but did not affect any rows (eg. an UPDATE of a non-existent record) will return + &true;. + + If you get some error like "arithmetic exception, numeric overflow,