Skip to content

Commit

Permalink
Sanitize GROUP BY etc. as well
Browse files Browse the repository at this point in the history
  • Loading branch information
methodmissing committed Mar 15, 2009
1 parent 7490916 commit 3845a2c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.textile
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ h2. Todo

* Deeper coverage for Scrooge::AttributesProxy ( pending conversion to a subclass of Hash instead )

* Extract Scrooge::Callsite
* Test cases for Scrooge::Callsite

* Track both columns AND association invocations off Scrooge::Callsite

Expand Down
2 changes: 1 addition & 1 deletion lib/optimizations/columns/macro.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module SingletonMethods

ScroogeBlankString = "".freeze
ScroogeComma = ",".freeze
ScroogeRegexSanitize = /(?:LIMIT|WHERE).*/i
ScroogeRegexSanitize = /(?:LIMIT|WHERE|FROM|GROUP\s*BY|HAVING|ORDER\s*BY|PROCEDURE|FOR\s*UPDATE|INTO\s*OUTFILE).*/i
ScroogeRegexJoin = /(?:left|inner|outer|cross)*\s*(?:straight_join|join)/i

@@scrooge_select_regexes = {}
Expand Down

0 comments on commit 3845a2c

Please sign in to comment.