Re: PDOStatement::activeQueryString()

From: Date: Thu, 13 Oct 2016 18:42:27 +0000
Subject: Re: PDOStatement::activeQueryString()
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-96346@lists.php.net to get a copy of this message
Hi, On 13/10/2016 19:59, Adam Baratz wrote: > I'd like to add a new method that would return the prepared statement as it > was executed. It's common for people I work with to want this info for > debugging, but you can't get it from userland. The functionality is similar > to, but distinct from PDOStatement::debugDumpParams(). > > I figure it's always easier to discuss proposals alongside real code: > https://github.com/php/php-src/pull/2159 > > Please let me know what you think, if an RFC would be appropriate, or what. To be perfectly honest, my wish is that EMULATE_PREPARES could be deprecated and removed and I see something this as a step in the opposite direction. That said, I think a tiny RFC that explains what's the problem you are trying to solve, the current issue and possible other solutions would be very welcome. This is an API change and most likely will require all the drivers to be adapted. Cheers -- Matteo Beccati Development & Consulting - http://www.beccati.com/

« previous php.internals (#96346) next »