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 38d1829 commit 2d9e498
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/shared/Database/QueryResultSqlite.cpp
Original file line number Diff line number Diff line change
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 2d9e498

Please sign in to comment.