diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-27 14:11:58 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2011-05-27 14:12:28 -0700 |
commit | 985ace4d7fd6a1ed4f0964c3172f1f554a88c769 (patch) | |
tree | 983a9fe3be3519c517d1e5682264879e82e37981 /activerecord/lib/active_record | |
parent | 62d5ef0c17b41ce8b3a5578e98081caeb4ba190e (diff) | |
download | rails-985ace4d7fd6a1ed4f0964c3172f1f554a88c769.tar.gz rails-985ace4d7fd6a1ed4f0964c3172f1f554a88c769.tar.bz2 rails-985ace4d7fd6a1ed4f0964c3172f1f554a88c769.zip |
work around bug in the sqlite3 bindings. fixes #1289
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb index 3c6f52e0fa..8e7c936bf8 100644 --- a/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb @@ -102,6 +102,7 @@ module ActiveRecord # Clears the prepared statements cache. def clear_cache! + @statements.values.each { |hash| hash[:stmt].close } @statements.clear end |