mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
free the result after slurping
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user