phpLens
 home  products examples manual  faq support forum  contact news  login store

Forums: phplens   adodb
Forum:   PHPLens Technical Support
author's name*
email*
topic*
body*
To help us reduce spam, please enter the text in the picture above

You can enter the following UBB tags: [b]bold[/b], [i]italic[/i], [red]red[/red] and [pre] [/pre]

Topic: catching errors from Oracle
author: phpWalter   created: 03-02-2012 07:18:56 PM
I am trying to determine if an error has occurred so I can gracefully fail.

I have 2 test operation, Stored Procedure and Stored Function.

The "$db" object is "ADORecordset_oci8po".

Bad user name:
* return value is false
* "invalid username/password" is displayed via xdebug
* nothing in object itself
* I have no way of knowing why this failed.

Bad procedure call:
* return value is false
* "PLS-00302: component 'P' must be declared" is displayed via xdebug
* _errorCode has a value
* _errorMsg has a value
* I can discover this type of error

So, how do I get the same errors that xdebug gets (and displays) ??

Thanks

Walter

View Source

email: contact#phplens.com (change # to @)     telephone (malaysia): 60-3-7947 2888     fax (malaysia): 60-3-7947 2800