From 6f3f3ba2d3192c8809d7a1f4c0e629f46818c63b Mon Sep 17 00:00:00 2001 From: Vladimir Morozov Date: Tue, 15 Mar 2022 00:32:21 -0700 Subject: [PATCH] fix(windows): fix MultiRemove by using CHECK_SQL_OK macro (#772) --- windows/code/DBStorage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/windows/code/DBStorage.cpp b/windows/code/DBStorage.cpp index fa34cfd2..87b9bed1 100644 --- a/windows/code/DBStorage.cpp +++ b/windows/code/DBStorage.cpp @@ -521,7 +521,7 @@ std::optional 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());