From 1efa9806b1c9a811605e0c8b182693bd9f44ea70 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Tue, 6 Aug 2024 00:36:49 +0200 Subject: Columns might be null --- src/duckdb/Result.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3