aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-07-10 15:18:49 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-07-10 15:18:49 -0300
commit14df08d80fc363fb9932d9534503b3276d30d9a5 (patch)
tree6e34835048ca701b47432b9b87f434c5ae81ccc8
parent4767bb11c280f97262d221c47af8d39ab4fd583f (diff)
parentfd1df48c5c062affe9acc6decf554397e8be20a1 (diff)
downloadrails-14df08d80fc363fb9932d9534503b3276d30d9a5.tar.gz
rails-14df08d80fc363fb9932d9534503b3276d30d9a5.tar.bz2
rails-14df08d80fc363fb9932d9534503b3276d30d9a5.zip
Merge pull request #374 from Shopify/no-need-to-quote-mysql-limit
No need to quote MySQL LIMIT
-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 f989b8ddef..724e0fc43e 100644
--- a/lib/arel/visitors/mysql.rb
+++ b/lib/arel/visitors/mysql.rb
@@ -40,7 +40,7 @@ module Arel
# http://dev.mysql.com/doc/refman/5.0/en/select.html#id3482214
def visit_Arel_Nodes_SelectStatement o, collector
if o.offset && !o.limit
- o.limit = Arel::Nodes::Limit.new(Nodes.build_quoted(18446744073709551615))
+ o.limit = Arel::Nodes::Limit.new(18446744073709551615)
end
super
end