Skip to content

Commit e8389fb

Browse files
committed
fix: null check
1 parent 0d4a535 commit e8389fb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package/cpp/types.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ struct SQLiteExecuteQueryResult {
3333

3434
// constexpr function that maps SQLiteColumnType to string literals
3535
inline ColumnType mapSQLiteTypeToColumnType(const char* type) {
36-
if (strcmp(type, "BOOLEAN")) {
36+
if (type == NULL) {
37+
return ColumnType::NULL_VALUE;
38+
} else if (strcmp(type, "BOOLEAN")) {
3739
return ColumnType::BOOLEAN;
3840
} else if (strcmp(type, "FLOAT")) {
3941
return ColumnType::NUMBER;

0 commit comments

Comments
 (0)