add msyql2 Arel support
This commit is contained in:
parent
737edcfe67
commit
4866ae0aa3
11
lib/arel/engines/sql/compilers/mysql2_compiler.rb
Normal file
11
lib/arel/engines/sql/compilers/mysql2_compiler.rb
Normal file
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user