Re: Re: MDB2 best way to get detailed errors back

From: Date: Wed, 19 Jul 2006 22:47:36 +0000
Subject: Re: Re: MDB2 best way to get detailed errors back
References: 1 2 3  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24705@lists.php.net to get a copy of this message
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/452 regards, Lukas

« previous php.pear.general (#24705) next »