1
0
Fork 0
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:
Aaron Patterson 2011-04-29 11:47:04 -07:00
parent 0eea560b48
commit 60c877c43b

View file

@ -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