diff options
author | Paul Sadauskas <psadauskas@gmail.com> | 2011-01-21 17:43:01 -0700 |
---|---|---|
committer | Paul Sadauskas <psadauskas@gmail.com> | 2011-01-21 17:43:01 -0700 |
commit | 430d88b37632a3c91dd6c02eb2b19863207d1cae (patch) | |
tree | 5a7bee5c449c97387d250374c0bb57aeddb20d9c /lib/arel/visitors/to_sql.rb | |
parent | 75bfee8cc15ca8bd07629c6e7b6f0950dcb2d864 (diff) | |
download | rails-430d88b37632a3c91dd6c02eb2b19863207d1cae.tar.gz rails-430d88b37632a3c91dd6c02eb2b19863207d1cae.tar.bz2 rails-430d88b37632a3c91dd6c02eb2b19863207d1cae.zip |
WITH expr as array in visitor
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 37c6a533ed..e021b5a707 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -151,11 +151,11 @@ eowarn end def visit_Arel_Nodes_With o - "WITH #{visit o.children}" + "WITH #{o.children.map { |x| visit x }.join(', ')}" end def visit_Arel_Nodes_WithRecursive o - "WITH RECURSIVE #{visit o.children}" + "WITH RECURSIVE #{o.children.map { |x| visit x }.join(', ')}" end def visit_Arel_Nodes_Union o |