Skip to content

Commit

Permalink
Drop all statements before closing sqlite connection
Browse files Browse the repository at this point in the history
  • Loading branch information
hasali19 authored and mehcode committed Apr 27, 2020
1 parent e7c1486 commit 3e2ed00
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sqlx-core/src/sqlite/connection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3e2ed00

Please sign in to comment.