mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-27 21:51:22 +00:00
Drop all statements before closing sqlite connection
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user