aboutsummaryrefslogtreecommitdiffstats
path: root/lib/arel/visitors/mysql.rb
diff options
context:
space:
mode:
authorViacheslav Petrenko <slavap@gmail.com>2010-12-27 18:16:18 +0200
committerAaron Patterson <aaron.patterson@gmail.com>2011-01-03 10:18:02 -0800
commit1a246f71616cf246a75ef6cbdb56032e43d4e643 (patch)
tree81b0795b26766f9c4cdc59c04d20837a5de051f9 /lib/arel/visitors/mysql.rb
parentee3c55c84996ad2565762fa1f472259460d7d731 (diff)
downloadrails-1a246f71616cf246a75ef6cbdb56032e43d4e643.tar.gz
rails-1a246f71616cf246a75ef6cbdb56032e43d4e643.tar.bz2
rails-1a246f71616cf246a75ef6cbdb56032e43d4e643.zip
Patched Arel v2.0.6 to support MSSQL SQL queries. Based on work of James Abley (https://github.com/jabley/arel).
Diffstat (limited to 'lib/arel/visitors/mysql.rb')
-rw-r--r--lib/arel/visitors/mysql.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/arel/visitors/mysql.rb b/lib/arel/visitors/mysql.rb
index ace8fb0979..b37d76f710 100644
--- a/lib/arel/visitors/mysql.rb
+++ b/lib/arel/visitors/mysql.rb
@@ -10,7 +10,7 @@ module Arel
# :'(
# http://dev.mysql.com/doc/refman/5.0/en/select.html#id3482214
def visit_Arel_Nodes_SelectStatement o
- o.limit = 18446744073709551615 if o.offset && !o.limit
+ o.limit = Arel::Nodes::Limit.new(18446744073709551615) if o.offset && !o.limit
super
end