Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

…solved]
  • Loading branch information...
commit c017041e68c3b7ca4677db0ab420cb7d8bccb72f 1 parent 7ce1539
@Jeff-Lawson Jeff-Lawson authored tenderlove committed
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
Please sign in to comment.
Something went wrong with that request. Please try again.