[TYPO3-core] RFC: non-generated sql queries may not be debugged
Michael Stucki
michael at typo3.org
Fri Mar 30 00:07:57 CEST 2007
Hi Martin & Ingo,
>>> Solution: add $query argument to debug() and use it in these functions.
>>
>> So why not writing those queries to lastBuildQuery?
>
> Possible.
See Masis comment below. The query is not built by TYPO3, so 1) the name
would be wrong, and 2) still this can only be of interest when debugging
this class.
I think Masis patch is fine as is.
> > As an alternative
>> we could add another variable to t3lib_db "lastQuery" use this one or
>> use either one which is filled.
>
> Not possible, as many statements will be called.
>
> But your suggestion is not really necessary. The lastBuiltQuery is a
> workaround to cope with the asynchronous API (create statement / execute
> statement). And direct SQL calls are not so widespread (in the Core).
>
> The real solution would of course be to use query objects instead of
> properties of one DB object.
- michael
--
Use a newsreader! Check out
http://typo3.org/community/mailing-lists/use-a-news-reader/
More information about the TYPO3-team-core
mailing list