Permalink
Browse files

Bug Fix -- clean up connection after stored procedure [#3151 state:re…

…solved]
  • Loading branch information...
1 parent 7ce1539 commit c017041e68c3b7ca4677db0ab420cb7d8bccb72f @Jeff-Lawson Jeff-Lawson committed with tenderlove Aug 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
View
2 activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -618,8 +618,8 @@ def select(sql, name = nil)
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

0 comments on commit c017041

Please sign in to comment.