MDB: executeQuery() - Error Handling Bug?
| From: | Thomas Schulz | Date: | Wed, 19 Feb 2003 16:09:47 +0000 |
| Subject: | MDB: executeQuery() - Error Handling Bug? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-3837@lists.php.net to get a copy of this message | ||
Hello,
when $mdb->executeQuery() produce an error, the error object don't contains
a callback so a defined $mdb->setErrorHandler('handle_error');
is not called.
There is no problem with error handling using other methods like execute()
or queryAll(). I use MDB 1.1.1.
Here is an error object produced by executeQuery():
mdb_error Object
(
[error_message_prefix] =>
[mode] =>
[level] =>
[code] => -20
[message] => MDB Error: insufficient data supplied
[userinfo] => Execute query: it was not defined query argument 1
[callback] =>
)
Thomas.
--
http://4bconsult.de