From c017041e68c3b7ca4677db0ab420cb7d8bccb72f Mon Sep 17 00:00:00 2001 From: Jeff Lawson Date: Sun, 1 Aug 2010 12:30:58 +0100 Subject: Bug Fix -- clean up connection after stored procedure [#3151 state:resolved] --- activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb index dca0ea67e6..9950387420 100644 --- a/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/mysql_adapter.rb @@ -618,8 +618,8 @@ module ActiveRecord result = execute(sql, name) rows = [] result.each_hash { |row| rows << row } - @connection.more_results && @connection.next_result # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped result.free + @connection.more_results && @connection.next_result # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped rows end -- cgit v1.2.3