instance method
exec_delete
Ruby on Rails 4.1.16
Since v3.1.12 Last seen in v4.1.16Signature
exec_delete(sql, name, binds)
No documentation comment.
Parameters
-
sqlreq -
namereq -
bindsreq
Source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 463
def exec_delete(sql, name, binds)
affected_rows = 0
exec_query(sql, name, binds) do |n|
affected_rows = n
end
affected_rows
end
Defined in activerecord/lib/active_record/connection_adapters/mysql_adapter.rb line 463
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mysql::Stmt::ActiveRecord::ConnectionAdapters::MysqlAdapter