From b323e78697f547417609240afd515bd7dd557d28 Mon Sep 17 00:00:00 2001 From: Vladimir Morozov Date: Mon, 14 Mar 2022 14:39:43 -0700 Subject: [PATCH] Fix MultiRemove by using CHECK_SQL_OK macro --- 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());