Skip to content

Commit

Permalink
fix: fix binding function types
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Jun 23, 2024
1 parent 2b31cb2 commit 693f1b7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/duckdb/src/vtab/function.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -264,7 +264,7 @@ impl TableFunction {
///
/// # Arguments
/// * `function`: The init function
pub fn set_init(&self, init_func: Option<unsafe extern "C" fn(*mut c_void)>) -> &Self {
pub fn set_init(&self, init_func: Option<unsafe extern "C" fn(duckdb_init_info)>) -> &Self {
unsafe {
duckdb_table_function_set_init(self.ptr, init_func);
}
Expand All @@ -275,7 +275,7 @@ impl TableFunction {
///
/// # Arguments
/// * `function`: The bind function
pub fn set_bind(&self, bind_func: Option<unsafe extern "C" fn(*mut c_void)>) -> &Self {
pub fn set_bind(&self, bind_func: Option<unsafe extern "C" fn(duckdb_bind_info)>) -> &Self {
unsafe {
duckdb_table_function_set_bind(self.ptr, bind_func);
}
Expand Down

0 comments on commit 693f1b7

Please sign in to comment.