clearing statements on disconnect and reset

This commit is contained in:
Aaron Patterson
2010-10-12 16:58:39 -07:00
parent 54ff59f3ba
commit 5abebfb569

View File

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