mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-12-29 21:00:54 +00:00
Drop all statements before closing sqlite connection
This commit is contained in:
parent
e7c1486005
commit
3e2ed00b60
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user