From 59c19b0d435260932a4e605f8c01b169f88050ab Mon Sep 17 00:00:00 2001 From: Swoorup Joshi Date: Mon, 17 Jun 2024 02:27:55 +1000 Subject: [PATCH] Fix error on setting length --- crates/duckdb/examples/hello-ext/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/duckdb/examples/hello-ext/main.rs b/crates/duckdb/examples/hello-ext/main.rs index fb5c8046..2e2dd1c7 100644 --- a/crates/duckdb/examples/hello-ext/main.rs +++ b/crates/duckdb/examples/hello-ext/main.rs @@ -68,7 +68,7 @@ impl VTab for HelloVTab { unsafe { if (*init_info).done { - output.set_len(0); + data_chunk.set_len(0); } else { (*init_info).done = true; data_chunk.reserve(1);