mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
clearing statements on disconnect and reset
This commit is contained in:
@@ -80,9 +80,15 @@ module ActiveRecord
|
||||
|
||||
def disconnect!
|
||||
super
|
||||
@statements.clear
|
||||
@connection.close rescue nil
|
||||
end
|
||||
|
||||
def reset!
|
||||
@statements.clear
|
||||
super
|
||||
end
|
||||
|
||||
def supports_count_distinct? #:nodoc:
|
||||
sqlite_version >= '3.2.6'
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user