mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
convert query results to a list of lists
This commit is contained in:
parent
0eea560b48
commit
60c877c43b
1 changed files with 1 additions and 2 deletions
|
@ -512,8 +512,7 @@ module ActiveRecord
|
|||
# Queries the database and returns the results in an Array-like object
|
||||
def query(sql, name = nil) #:nodoc:
|
||||
log(sql, name) do
|
||||
@connection.async_exec(sql)
|
||||
return result_as_array(res)
|
||||
result_as_array @connection.async_exec(sql)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue