Re: [Components] sql-comments for ezcDatabase

2009-04-20 Thread Derick Rethans
On Sat, 18 Apr 2009, Thomas Koch wrote: I'm just looking at a talk[1] from a flickr guy and he mentions a debugging trick they use: While in Debug mode, enhance each SQL query with a comment containing the full PHP backtrace. Thus you can see in the DB-log where each query comes from in

[Components] sql-comments for ezcDatabase

2009-04-18 Thread Thomas Koch
I'm just looking at a talk[1] from a flickr guy and he mentions a debugging trick they use: While in Debug mode, enhance each SQL query with a comment containing the full PHP backtrace. Thus you can see in the DB-log where each query comes from in your PHP code. May I put this as an