Merge branch 'flush-cache' of https://github.com/gwenn/rusqlite into gwenn-flush-cache

This commit is contained in:
John Gallagher
2016-12-30 23:55:19 -05:00
3 changed files with 19 additions and 1 deletions

View File

@@ -405,6 +405,7 @@ impl Connection {
///
/// Will return `Err` if the underlying SQLite call fails.
pub fn close(self) -> Result<()> {
self.flush_prepared_statement_cache();
let mut db = self.db.borrow_mut();
db.close()
}