1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove not needed exec_insert in mysql2 adapter

Simply it is sufficient to use the method in the super class.
This commit is contained in:
Ryuta Kamizono 2016-02-15 06:12:59 +09:00
parent 7fa15fe694
commit 41123533ed

View file

@ -134,10 +134,6 @@ module ActiveRecord
ActiveRecord::Result.new(result.fields, result.to_a) if result
end
def exec_insert(sql, name, binds, pk = nil, sequence_name = nil)
execute to_sql(sql, binds), name
end
def exec_delete(sql, name, binds)
execute to_sql(sql, binds), name
@connection.affected_rows