mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-06 09:48:58 +08:00
adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE
fix #751
This commit is contained in:
@@ -63,6 +63,7 @@ impl RawStatement {
|
||||
unsafe { ffi::sqlite3_column_type(self.ptr, idx as c_int) }
|
||||
}
|
||||
|
||||
#[cfg(feature = "column_decltype")]
|
||||
pub fn column_decltype(&self, idx: usize) -> Option<&CStr> {
|
||||
unsafe {
|
||||
let decltype = ffi::sqlite3_column_decltype(self.ptr, idx as c_int);
|
||||
|
||||
Reference in New Issue
Block a user