Last modified: 2010-05-15 16:03:16 UTC
The function Database->limitResult adds a blank space to the beginning of SQL queries for some reason. When logging SQL, this space causes comments to be added to the beginning of the SQL instead of after the command in Database->query. Expected result in log: SQL: SELECT /* SiteStatsUpdate::doUpdate UserName */ * FROM `site_stats` LIMIT 1 Actual Result in log: SQL : /* SiteStatsUpdate::doUpdate UserName */ SELECT * FROM `site_stats` LIMIT 1
By the way, this can be fixed by deleting the extra space in front of the $sql variable in Database->limitResult. About as easy as they come.
Fixed in r34441