From 2d9e4980b110fc4cab968cd79248f7fbd3a74ae3 Mon Sep 17 00:00:00 2001 From: insunaa Date: Sun, 7 Jan 2024 16:38:25 +0100 Subject: [PATCH] SQLite: Fix null-data handling --- src/shared/Database/QueryResultSqlite.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shared/Database/QueryResultSqlite.cpp b/src/shared/Database/QueryResultSqlite.cpp index 89f682aba0..1c5b07ddb5 100644 --- a/src/shared/Database/QueryResultSqlite.cpp +++ b/src/shared/Database/QueryResultSqlite.cpp @@ -67,7 +67,8 @@ bool QueryResultSqlite::NextRow() for (int i = 0; i < mFieldCount; ++i) { const unsigned char* value = sqlite3_column_text(*mStmt, i); - mCurrentRow[i].SetValue(value ? reinterpret_cast(value) : ""); + + mCurrentRow[i].SetValue(value ? reinterpret_cast(value) : nullptr); mCurrentRow[i].SetType(ConvertNativeType(sqlite3_column_type(*mStmt, i))); }