diff options
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 46f70d0f7c..5be95565f3 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -84,6 +84,10 @@ module Arel def visit_Arel_Nodes_Lock o end + def visit_Arel_Nodes_Grouping o + "(#{visit o.expr})" + end + def visit_Arel_Nodes_Group o visit o.expr end |