Class: ActiveRecord::ConnectionAdapters::PedantMysql2Adapter

Inherits:
Mysql2Adapter
  • Object
show all
Defined in:
lib/active_record/connection_adapters/pedant_mysql2_adapter.rb

Instance Method Summary collapse

Instance Method Details

#exec_delete(sql, name, binds) ⇒ Object Also known as: exec_update



67
68
69
70
71
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 67

def exec_delete(sql, name, binds)
  @affected_rows_before_logging = nil
  value = super
  @affected_rows_before_logging || value
end

#execute(sql, name = nil) ⇒ Object



61
62
63
64
65
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 61

def execute(sql, name = nil)
  value = super
  log_warnings(sql)
  value
end