diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 11:47:04 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-04-29 11:47:04 -0700 |
commit | 60c877c43baa588db277fb4eca317e2f7884be70 (patch) | |
tree | 69205e780c8a7afabf76c9c342539a696fdbd9ff /activerecord | |
parent | 0eea560b485b6aac0e13119b7a6b925c24051f00 (diff) | |
download | rails-60c877c43baa588db277fb4eca317e2f7884be70.tar.gz rails-60c877c43baa588db277fb4eca317e2f7884be70.tar.bz2 rails-60c877c43baa588db277fb4eca317e2f7884be70.zip |
convert query results to a list of lists
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index ce0cfa904a..f3e0248e39 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -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 |