From 4866ae0aa3cebca00afad9fc1e5a4d8989861d8c Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 15 Apr 2010 12:23:24 -0700 Subject: [PATCH] add msyql2 Arel support --- lib/arel/engines/sql/compilers/mysql2_compiler.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lib/arel/engines/sql/compilers/mysql2_compiler.rb diff --git a/lib/arel/engines/sql/compilers/mysql2_compiler.rb b/lib/arel/engines/sql/compilers/mysql2_compiler.rb new file mode 100644 index 0000000..4b8998f --- /dev/null +++ b/lib/arel/engines/sql/compilers/mysql2_compiler.rb @@ -0,0 +1,11 @@ +module Arel + module SqlCompiler + class Mysql2Compiler < GenericCompiler + def limited_update_conditions(conditions, taken) + conditions << " LIMIT #{taken}" + conditions + end + end + end +end +