diff options
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 1 |
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 |