use new close method for disconnecting where we can
This commit is contained in:
parent
e01c7581e5
commit
5b41082aba
@ -243,10 +243,12 @@ module ActiveRecord
|
||||
end
|
||||
|
||||
def disconnect!
|
||||
@connection.close
|
||||
@connection = nil
|
||||
end
|
||||
|
||||
def reset!
|
||||
disconnect!
|
||||
@connection = Mysql2::Client.new(@config)
|
||||
end
|
||||
|
||||
|
@ -150,7 +150,7 @@ module Sequel
|
||||
|
||||
# Closes given database connection.
|
||||
def disconnect_connection(c)
|
||||
c = nil
|
||||
c.close
|
||||
end
|
||||
|
||||
# Convert tinyint(1) type to boolean if convert_tinyint_to_bool is true
|
||||
|
Loading…
Reference in New Issue
Block a user