free the result after slurping

This commit is contained in:
Aaron Patterson
2010-10-13 17:14:09 -07:00
parent efc10a8a64
commit ee959a9ca1

View File

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