[TYPO3-core] RFC: non-generated sql queries may not be debugged

Ingo Renner typo3 at ingo-renner.com
Wed Mar 14 10:15:57 CET 2007


Am 13.03.2007 um 22:05 schrieb Martin Kutschker:

Hi Masi,

> Problem: t3lib_db::debug() always reports  
> t3lib_db::debug_lastBuiltQuery, which is wrong for those functions  
> that get their queries directly from the caller.
>
> Solution: add $query argument to debug() and use it in these  
> functions.

So why not writing those queries to lastBuildQuery? As an alternative  
we could add another variable to t3lib_db "lastQuery" use this one or  
use either one which is filled.


Ingo



More information about the TYPO3-team-core mailing list