diff --git a/Sources/Lighter/Operations/SQLDatabaseChangeOperations.swift b/Sources/Lighter/Operations/SQLDatabaseChangeOperations.swift index 4301911..c08c6ae 100644 --- a/Sources/Lighter/Operations/SQLDatabaseChangeOperations.swift +++ b/Sources/Lighter/Operations/SQLDatabaseChangeOperations.swift @@ -270,6 +270,7 @@ extension SQLDatabaseChangeOperations { // MARK: - Update for record in records { try bindUpdateAndExecute(record, using: statement, in: db) + sqlite3_reset(statement) } } @@ -383,6 +384,8 @@ extension SQLDatabaseChangeOperations { // MARK: - Insert in: db ) results.append(result) + sqlite3_reset(statement) + sqlite3_reset(fetchStatement) } return results }