mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
work around bug in the sqlite3 bindings. fixes #1289
This commit is contained in:
@@ -103,6 +103,7 @@ module ActiveRecord
|
||||
|
||||
# Clears the prepared statements cache.
|
||||
def clear_cache!
|
||||
@statements.values.each { |hash| hash[:stmt].close }
|
||||
@statements.clear
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user