diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-06 20:26:08 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-12-07 10:48:02 -0800 |
commit | 40105685957e377c263cfdd59178d3efc3a64181 (patch) | |
tree | 70b54b9f1195589bcf6434e24322d6f64fbb5d90 /lib/arel/visitors/to_sql.rb | |
parent | c28fe4cbbb1121394c6bb14403350723f9ecce4c (diff) | |
download | rails-40105685957e377c263cfdd59178d3efc3a64181.tar.gz rails-40105685957e377c263cfdd59178d3efc3a64181.tar.bz2 rails-40105685957e377c263cfdd59178d3efc3a64181.zip |
quoting limit nodes
Diffstat (limited to 'lib/arel/visitors/to_sql.rb')
-rw-r--r-- | lib/arel/visitors/to_sql.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/to_sql.rb b/lib/arel/visitors/to_sql.rb index 2713621a54..2fb464b265 100644 --- a/lib/arel/visitors/to_sql.rb +++ b/lib/arel/visitors/to_sql.rb @@ -76,7 +76,7 @@ module Arel [ o.cores.map { |x| visit_Arel_Nodes_SelectCore x }.join, ("ORDER BY #{o.orders.map { |x| visit x }.join(', ')}" unless o.orders.empty?), - ("LIMIT #{o.limit}" if o.limit), + ("LIMIT #{visit o.limit}" if o.limit), (visit(o.offset) if o.offset), (visit(o.lock) if o.lock), ].compact.join ' ' |