aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-10-13 17:14:09 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-10-26 13:44:09 -0700
commitee959a9ca1f3eb75baa4e7dc6929cb209c610c85 (patch)
tree9554ee229013a0a011fea378bd60e1e1d48a292b /activerecord
parentefc10a8a64d5748bc8355c0bd0373ca6b8c8755c (diff)
downloadrails-ee959a9ca1f3eb75baa4e7dc6929cb209c610c85.tar.gz
rails-ee959a9ca1f3eb75baa4e7dc6929cb209c610c85.tar.bz2
rails-ee959a9ca1f3eb75baa4e7dc6929cb209c610c85.zip
free the result after slurping
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/connection_adapters/mysql_adapter.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
index 6236a906c3..f2e8366bb9 100644
--- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
+++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -336,6 +336,7 @@ module ActiveRecord
cols = metadata.fetch_fields.map { |field| field.name }
values = []
stmt.each { |thing| values << thing }
+ stmt.free_result
result = ActiveRecord::Result.new(cols, values)
end