aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/arel/engines/sql/compilers/mysql_compiler.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/arel/engines/sql/compilers/mysql_compiler.rb b/lib/arel/engines/sql/compilers/mysql_compiler.rb
index ba3312ba72..cb12e7377a 100644
--- a/lib/arel/engines/sql/compilers/mysql_compiler.rb
+++ b/lib/arel/engines/sql/compilers/mysql_compiler.rb
@@ -1,7 +1,8 @@
module Arel
module SqlCompiler
class MySQLCompiler < GenericCompiler
- def limited_update_conditions(conditions)
+ def limited_update_conditions(conditions, taken)
+ conditions << " LIMIT #{taken}"
conditions
end
end