diff options
Diffstat (limited to 'src/duckdb')
-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, |