Permalink
Browse files

Make sure sqlite3 driver closes open connections on disconnect (closes

…#7105)

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6012 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1e9ce3c commit 7359dc0028b87f948d188f5fa6bb366a49181a81 @jamis jamis committed Jan 22, 2007
Showing with 7 additions and 0 deletions.
  1. +2 −0 activerecord/CHANGELOG
  2. +5 −0 activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb
View
@@ -1,5 +1,7 @@
*SVN*
+* Make sure sqlite3 driver closes open connections on disconnect [Rob Rasmussen]
+
* [DOC] clear up some ambiguity with the way has_and_belongs_to_many creates the default join table name. #7072 [jeremymcanally]
* change_column accepts :default => nil. Skip column options for primary keys. #6956, #7048 [dcmanges, Jeremy Kemper]
@@ -105,6 +105,11 @@ def supports_migrations? #:nodoc:
def requires_reloading?
true
end
+
+ def disconnect!
+ super
+ @connection.close rescue nil
+ end
def supports_count_distinct? #:nodoc:
sqlite_version >= '3.2.6'

0 comments on commit 7359dc0

Please sign in to comment.