[TYPO3-core] RFC: t3lib_DB displays wrong SQL in error case

Franz Holzinger franz at fholzinger.com
Wed Dec 19 12:43:44 CET 2007


This is a SVN patch request.

Branches: trunk

Problem:
If there is a SQL error due to an UPDATE query with empty field array,
then an error message is displayed. However the last displayed SQL query
is not the one which has caused the error. Therefore it is hard to find
out what has went wrong.

Solution:
Always build and store the SQL query and return an empty string if no
field array has been provided. As a result the debug output will show
the wrongly build SQL UPDATE statement.

- Franz


-------------- next part --------------
A non-text attachment was scrubbed...
Name: class.t3lib_db-wrong-sql.diff
Type: text/x-patch
Size: 1716 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071219/90358376/attachment.bin 


More information about the TYPO3-team-core mailing list