RE: [PHP] Detecting error in OCIExecute calls
| From: | Michael Peppard | Date: | Wed, 09 May 2001 15:16:44 +0000 |
| Subject: | RE: [PHP] Detecting error in OCIExecute calls | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-52118@lists.php.net to get a copy of this message | ||
OCIError($stm)
Will tell you if an error has been raised.
The error returned is whatever you asked the Oracle procedure to "raise",
or the error is a positive integer if Oracle raised the error internally
ORA-00000 (OCIError() = 0) means the operation completed succesfully.
This may or maynot be correct if a technically "successful" operation gives
you bad information, which is why I mentioned "raising" an error in the
procedure.
-Mike
>-----Original Message-----
>From: Robert Mena [mailto:rt_mena@yahoo.com]
>Sent: Tuesday, May 08, 2001 6:02 PM
>To: php mailing list
>Subject: [PHP] Detecting error in OCIExecute calls