Re: Re: MDB2 best way to get detailed errors back
| From: | Justin Patrin | Date: | Thu, 20 Jul 2006 01:00:10 +0000 |
| Subject: | Re: Re: MDB2 best way to get detailed errors back | ||
| References: | 1 2 3 4 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24706@lists.php.net to get a copy of this message | ||
On 7/19/06, Lukas Smith <lsmith@php.net> wrote:
brian wrote: Lukas, is there some way to have MDB2 display the resulting SQL query from a failed prepared statement? That is, with the '?'s replaced with the quoted params. with the debug callback you get every step, the preparing of the query, execution. if you are using emulated prepared statement you get the query with the values inserted, for native prepared statements you get the query with placeholders and an array with the values. current cvs expands on this: http://pooteeweet.org/blog/452I personally feel that this would be very nice to have in the error, perhaps as part of the userinfo or debuginfo. It makes debugging SQL errors that much easier. -- Justin Patrin