From 693f1b742009dfca9f78329a709c27cb67606aaf Mon Sep 17 00:00:00 2001 From: Rusty Conover Date: Sun, 23 Jun 2024 10:50:50 -0400 Subject: [PATCH] fix: fix binding function types --- crates/duckdb/src/vtab/function.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/duckdb/src/vtab/function.rs b/crates/duckdb/src/vtab/function.rs index e3131d4c..a1ce75aa 100644 --- a/crates/duckdb/src/vtab/function.rs +++ b/crates/duckdb/src/vtab/function.rs @@ -19,7 +19,7 @@ use std::{ /// An interface to store and retrieve data during the function bind stage #[derive(Debug)] pub struct BindInfo { - ptr: *mut c_void, + ptr: duckdb_bind_info, } impl BindInfo { @@ -264,7 +264,7 @@ impl TableFunction { /// /// # Arguments /// * `function`: The init function - pub fn set_init(&self, init_func: Option) -> &Self { + pub fn set_init(&self, init_func: Option) -> &Self { unsafe { duckdb_table_function_set_init(self.ptr, init_func); } @@ -275,7 +275,7 @@ impl TableFunction { /// /// # Arguments /// * `function`: The bind function - pub fn set_bind(&self, bind_func: Option) -> &Self { + pub fn set_bind(&self, bind_func: Option) -> &Self { unsafe { duckdb_table_function_set_bind(self.ptr, bind_func); }