We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7c76284 commit 4a0d813Copy full SHA for 4a0d813
crates/duckdb/src/raw_statement.rs
@@ -217,8 +217,10 @@ impl RawStatement {
217
218
#[inline]
219
pub fn column_logical_type(&self, idx: usize) -> LogicalTypeHandle {
220
- let ptr = unsafe { ffi::duckdb_column_logical_type(&mut self.duckdb_result.unwrap() as *mut _, idx as u64) };
221
- LogicalTypeHandle { ptr }
+ unsafe {
+ let ptr = ffi::duckdb_prepared_statement_column_logical_type(self.ptr, idx as u64);
222
+ LogicalTypeHandle::new(ptr)
223
+ }
224
}
225
226
0 commit comments