module ActiveRecord::ConnectionAdapters::MySQL::DatabaseStatements
def exec_delete(sql, name = nil, binds = []) # :nodoc:
def exec_delete(sql, name = nil, binds = []) # :nodoc: if without_prepared_statement?(binds) @lock.synchronize do execute_and_free(sql, name) { @connection.affected_rows } end else exec_stmt_and_free(sql, name, binds) { |stmt| stmt.affected_rows } end end