Re: display MDB2 native error message
| From: | Mark Wiesemann | Date: | Tue, 26 Jun 2007 12:50:16 +0000 |
| Subject: | Re: display MDB2 native error message | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-27575@lists.php.net to get a copy of this message | ||
Hi Paolo,
Paolo Sala wrote:
> Hi I'm writing an intranet web application using pear mdb2 and postgres.
> I've done some trigger in postgres to have data integrity, so it is
> important that exception messages raised from postgres are shown to the
> user.
>
> There is a way to display the native postgres message when an exception
> is raised?
If you use something like $res->getMessage() to display error messages
currently, then you just need to call also $res->getDebugInfo() which
will return the native error message.
Regards,
Mark
--
http://www.markwiesemann.eu