From 3c14689ba6168ba45059191efb2053682e8b9ad5 Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 27 Apr 2024 22:50:50 +0200 Subject: [PATCH] Return OK when SQLITE_ROW in step(). --- modules/database_sqlite/sqlite3_prepared_statement.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/database_sqlite/sqlite3_prepared_statement.cpp b/modules/database_sqlite/sqlite3_prepared_statement.cpp index c5bbbc905..d90e7ecb4 100644 --- a/modules/database_sqlite/sqlite3_prepared_statement.cpp +++ b/modules/database_sqlite/sqlite3_prepared_statement.cpp @@ -459,6 +459,10 @@ Error SQLite3PreparedStatement::step() { int res = sqlite3_step(_prepared_statement); + if (res == SQLITE_ROW) { + return OK; + } + if (res != SQLITE_OK) { return FAILED; }