summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2024-08-06 00:36:49 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2024-08-06 00:36:49 +0200
commit1efa9806b1c9a811605e0c8b182693bd9f44ea70 (patch)
treef5a1b6780b969010d442bcacb1595da0917f6b66 /src
parent8efa7cb0013aae1708e2d815b7fa65f055062159 (diff)
Columns might be null
Diffstat (limited to 'src')
-rw-r--r--src/duckdb/Result.zig2
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,