[TYPO3-dev] mysql errors log

Vladimir Podkovanov podkovanov at gmail.com
Tue Jan 17 20:01:46 CET 2012


On 17.01.2012 19:47, Steffen Gebert wrote:
> BTW: I would even go so far to throw exceptions in case of an SQL query
> fails!
>
> Kind regards
> Steffen
>

I think even trigger_error() for failed queries would make sense as from 
a developer view wrong query means syntax error and failed PHP code 
somewhere.
I doubt that there is scenario where failed SQL query could be just 
skipped so I think trigger error better than throw exception.

And in this case error messages go to the same log as other PHP errors.
-- 
-rgds-
Vladimir



More information about the TYPO3-dev mailing list