diff options
Diffstat (limited to 'lib/arel')
-rw-r--r-- | lib/arel/select_manager.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/select_manager.rb b/lib/arel/select_manager.rb index 34a86da68d..de68b25b64 100644 --- a/lib/arel/select_manager.rb +++ b/lib/arel/select_manager.rb @@ -38,8 +38,8 @@ module Arel Arel::Nodes::Exists.new @ast end - def as node, expr - Arel::Nodes::As.new node, expr + def as other + Nodes::As.new grouping(@ast), Nodes::SqlLiteral.new(other) end def where_clauses |