diff options
author | Jeff Lawson <jdl@cogentlogic.com> | 2010-08-01 12:30:58 +0100 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-08-17 13:16:03 -0700 |
commit | c017041e68c3b7ca4677db0ab420cb7d8bccb72f (patch) | |
tree | 9e8ab816a69d8ccf8a8468971ec5b847d5fca309 /activerecord | |
parent | 7ce1539934b67e536446f7323c7848fdd6ba68e3 (diff) | |
download | rails-c017041e68c3b7ca4677db0ab420cb7d8bccb72f.tar.gz rails-c017041e68c3b7ca4677db0ab420cb7d8bccb72f.tar.bz2 rails-c017041e68c3b7ca4677db0ab420cb7d8bccb72f.zip |
Bug Fix -- clean up connection after stored procedure [#3151 state:resolved]
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/mysql_adapter.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |