Skip to content

Commit

Permalink
fix(windows): fix MultiRemove by using CHECK_SQL_OK macro (#772)
Browse files Browse the repository at this point in the history
  • Loading branch information
vmoroz authored Mar 15, 2022
1 parent 07fcbf1 commit 6f3f3ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion windows/code/DBStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ std::optional<bool> DBStorage::DBTask::MultiRemove(sqlite3 *db,
auto statement = StatementPtr{nullptr, &sqlite3_finalize};
CHECK_SQL_OK(PrepareStatement(db, sql, &statement));
for (int i = 0; i < argCount; i++) {
CHECK(BindString(statement, i + 1, keys[i]));
CHECK_SQL_OK(BindString(statement, i + 1, keys[i]));
}
for (;;) {
auto stepResult = sqlite3_step(statement.get());
Expand Down

0 comments on commit 6f3f3ba

Please sign in to comment.