Re: MDB2 debug_handler

From: Date: Tue, 03 Jul 2012 13:02:05 +0000
Subject: Re: MDB2 debug_handler
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-31589@lists.php.net to get a copy of this message
Hi Koteles: On Tue, Jul 03, 2012 at 09:43:18AM +0200, Köteles Zoltán wrote: > > I'd like to logging the query errors with MDB2's debug_handler function. > But if I know well debug handler show every query not only the errors. > Inside my function I'd like to catch only the errors. Looking at the code in MDB2.php, that's not possible. The logging happens before the query executes. One way to do what you want is write a wrapper class that does what you want. --Dan -- T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y data intensive web and database programming http://www.AnalysisAndSolutions.com/ 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335

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