Skip to content

Commit

Permalink
SQLite: Fix null-data handling
Browse files Browse the repository at this point in the history
  • Loading branch information
insunaa committed Jan 7, 2024
1 parent 3e48e60 commit 2b5bb6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/Database/QueryResultSqlite.cpp
Expand Up @@ -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<const char*>(value) : "");

mCurrentRow[i].SetValue(value ? reinterpret_cast<const char*>(value) : nullptr);
mCurrentRow[i].SetType(ConvertNativeType(sqlite3_column_type(*mStmt, i)));
}

Expand Down

0 comments on commit 2b5bb6f

Please sign in to comment.