Class: ActiveRecord::ConnectionAdapters::PedantMysql2Adapter
- Inherits:
-
Mysql2Adapter
- Object
- Mysql2Adapter
- ActiveRecord::ConnectionAdapters::PedantMysql2Adapter
- Defined in:
- lib/active_record/connection_adapters/pedant_mysql2_adapter.rb
Instance Method Summary collapse
- #exec_delete(sql, name, binds) ⇒ Object (also: #exec_update)
- #execute(sql) ⇒ Object
Instance Method Details
#exec_delete(sql, name, binds) ⇒ Object Also known as: exec_update
68 69 70 71 72 |
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 68 def exec_delete(sql, name, binds) @affected_rows_before_logging = nil value = super @affected_rows_before_logging || value end |
#execute(sql) ⇒ Object
61 62 63 64 65 |
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 61 def execute(sql, *) value = super log_warnings(sql) value end |