diff options
-rw-r--r-- | lib/arel/select_manager.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index e362f369e7..c8cd37b9fa 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -19,7 +19,11 @@ module Arel end def project *projections - @ctx.projections.concat projections + # FIXME: converting these to SQLLiterals is probably not good, but + # rails tests require it. + @ctx.projections.concat projections.map { |x| + String == x.class ? SqlLiteral.new(x) : x + } self end |