cakephp/datasources — pull request #38 by biosflasher (2012-08-28 11:06:04+00:00)
Title: Robustify sqlite3 column name detection

Column names such as 'SENT_FROM' is not compatible with the current SQLite DBO. This is because it looks for the first occurence of 'FROM' in the query to figure out which part of the query contains the columns.

By changing the this to look for ' FROM ' (with spaces surrounding the FROM) we gain a bit of robustness. It will still not work with unlikely names such as 'SENT FROM EMAIL'.