diff options
author | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-06 00:36:49 +0200 |
---|---|---|
committer | Ekaitz Zarraga <ekaitz@elenq.tech> | 2024-08-06 00:36:49 +0200 |
commit | 1efa9806b1c9a811605e0c8b182693bd9f44ea70 (patch) | |
tree | f5a1b6780b969010d442bcacb1595da0917f6b66 | |
parent | 8efa7cb0013aae1708e2d815b7fa65f055062159 (diff) |
Columns might be null
-rw-r--r-- | src/duckdb/Result.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/duckdb/Result.zig b/src/duckdb/Result.zig index 87d9f6f..b86a2ab 100644 --- a/src/duckdb/Result.zig +++ b/src/duckdb/Result.zig @@ -111,7 +111,7 @@ pub fn Result(comptime T: type) type{ } // Store the column in current row - if (is_valid){ + if (is_valid and self._data[i] != null){ // Unwrap the output Optional const t = switch (@typeInfo(field.type)){ .Optional => |t| t.child, |