Skip to content

Commit 42abf91

Browse files
authored
clear bindings (#78)
* clear bindings Change-Id: I08ef2225e365972e14839029615486f463300e57 * fix clippy error Change-Id: I0b2bfc31eb8d8dec0e2151c84f297ba1ba022970
1 parent 3a6f966 commit 42abf91

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/raw_statement.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ use crate::error::result_from_duckdb_arrow;
1111
use arrow::array::{ArrayData, StructArray};
1212
use arrow::datatypes::{DataType, Schema, SchemaRef};
1313
use arrow::ffi::{ArrowArray, FFI_ArrowArray, FFI_ArrowSchema};
14-
use ffi::DuckDBSuccess;
1514

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

6766
#[inline]
6867
pub fn clear_bindings(&self) -> ffi::duckdb_state {
69-
// unsafe { ffi::sqlite3_clear_bindings(self.ptr) }
70-
DuckDBSuccess
68+
unsafe { ffi::duckdb_clear_bindings(self.ptr) }
7169
}
7270

7371
#[inline]

0 commit comments

Comments
 (0)