Skip to content
This repository
Browse code

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

…solved]
  • Loading branch information...
commit c017041e68c3b7ca4677db0ab420cb7d8bccb72f 1 parent 7ce1539
Jeff-Lawson authored August 01, 2010 tenderlove committed August 17, 2010
2  activerecord/lib/active_record/connection_adapters/mysql_adapter.rb
@@ -618,8 +618,8 @@ def select(sql, name = nil)
618 618
           result = execute(sql, name)
619 619
           rows = []
620 620
           result.each_hash { |row| rows << row }
621  
-          @connection.more_results && @connection.next_result    # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped 
622 621
           result.free
  622
+          @connection.more_results && @connection.next_result    # invoking stored procedures with CLIENT_MULTI_RESULTS requires this to tidy up else connection will be dropped 
623 623
           rows
624 624
         end
625 625
 

0 notes on commit c017041

Please sign in to comment.
Something went wrong with that request. Please try again.