Skip to content

Commit

Permalink
clear bindings (#78)
Browse files Browse the repository at this point in the history
* clear bindings

Change-Id: I08ef2225e365972e14839029615486f463300e57

* fix clippy error

Change-Id: I0b2bfc31eb8d8dec0e2151c84f297ba1ba022970
  • Loading branch information
wangfenjin authored Sep 7, 2022
1 parent 3a6f966 commit 42abf91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/raw_statement.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ use crate::error::result_from_duckdb_arrow;
use arrow::array::{ArrayData, StructArray};
use arrow::datatypes::{DataType, Schema, SchemaRef};
use arrow::ffi::{ArrowArray, FFI_ArrowArray, FFI_ArrowSchema};
use ffi::DuckDBSuccess;

// Private newtype for raw sqlite3_stmts that finalize themselves when dropped.
// TODO: destroy statement and result
Expand Down Expand Up @@ -66,8 +65,7 @@ impl RawStatement {

#[inline]
pub fn clear_bindings(&self) -> ffi::duckdb_state {
// unsafe { ffi::sqlite3_clear_bindings(self.ptr) }
DuckDBSuccess
unsafe { ffi::duckdb_clear_bindings(self.ptr) }
}

#[inline]
Expand Down

0 comments on commit 42abf91

Please sign in to comment.