instance method
exec_query
Ruby on Rails 3.1.12
Since v3.1.12 Last seen in v4.2.9Signature
exec_query(sql, name = 'SQL', binds = [])
No documentation comment.
Parameters
-
sqlreq -
nameopt = 'SQL' -
bindsopt = []
Source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 441
def exec_query(sql, name = 'SQL', binds = [])
log(sql, name, binds) do
exec_stmt(sql, name, binds) do |cols, stmt|
ActiveRecord::Result.new(cols, stmt.to_a) if cols
end
end
end
Defined in activerecord/lib/active_record/connection_adapters/mysql_adapter.rb line 441
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Mysql::Stmt::ActiveRecord::ConnectionAdapters::MysqlAdapter