Drop all statements before closing sqlite connection

This commit is contained in:
Hasan Ali 2020-04-27 15:09:02 +01:00 committed by Ryan Leckey
parent e7c1486005
commit 3e2ed00b60

View File

@ -150,6 +150,7 @@ impl Drop for SqliteConnection {
fn drop(&mut self) {
// Drop all statements first
self.statements.clear();
drop(self.statement.take());
// Next close the statement
// https://sqlite.org/c3ref/close.html