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, name = nil) ⇒ Object
Instance Method Details
#exec_delete(sql, name, binds) ⇒ Object Also known as: exec_update
47 48 49 50 51 |
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 47 def exec_delete(sql, name, binds) @affected_rows_before_logging = nil value = super @affected_rows_before_logging || value end |
#execute(sql, name = nil) ⇒ Object
41 42 43 44 45 |
# File 'lib/active_record/connection_adapters/pedant_mysql2_adapter.rb', line 41 def execute(sql, name = nil) value = super log_warnings(sql) value end |