From 6762cf774cfa84804650a12e4397891869ab6106 Mon Sep 17 00:00:00 2001 From: Emilio Tagua Date: Thu, 25 Feb 2010 12:15:22 -0300 Subject: Fix limited_update_conditions on MySQLCompiler to receive and build limit. --- lib/arel/engines/sql/compilers/mysql_compiler.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib') 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 -- cgit v1.2.3