method
select
select(sql, name = nil)
private
Hide source
# File activerecord/lib/active_record/connection_adapters/mysql_adapter.rb, line 617 def select(sql, name = nil) @connection.query_with_result = true result = execute(sql, name) rows = [] result.each_hash { |row| rows << row } result.free @connection.more_results && @connection.next_result # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped rows end