work around bug in the sqlite3 bindings. fixes #1289

This commit is contained in:
Aaron Patterson
2011-05-27 14:11:58 -07:00
parent c0c9a336be
commit 18a2dfbbcf

View File

@@ -103,6 +103,7 @@ module ActiveRecord
# Clears the prepared statements cache.
def clear_cache!
@statements.values.each { |hash| hash[:stmt].close }
@statements.clear
end