mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Bug Fix -- clean up connection after stored procedure [#3151 state:resolved]
This commit is contained in:
committed by
Aaron Patterson
parent
90176a6f15
commit
82a58abe05
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user