Bug Fix -- clean up connection after stored procedure [#3151 state:resolved]

This commit is contained in:
Jeff Lawson
2010-08-01 12:30:58 +01:00
committed by Aaron Patterson
parent 90176a6f15
commit 82a58abe05

View File

@@ -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