Permalink
Browse files

columns are lazily typecast, so no more calls to `result_as_array`

  • Loading branch information...
1 parent 3efbd7f commit a92af3fbf0c941c5e8c210e9bbba6a9ab50ca772 @tenderlove tenderlove committed Feb 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb
@@ -719,7 +719,7 @@ def exec_query(sql, name = 'SQL', binds = [])
}
end
- ret = Result.new(result.fields, result_as_array(result), types)
+ ret = Result.new(result.fields, result.values, types)
result.clear
return ret
end

0 comments on commit a92af3f

Please sign in to comment.