adding ability to work with sqlite compiled with -DSQLITE_OMIT_DECLTYPE

fix #751
This commit is contained in:
Evgeniy A. Dushistov
2020-06-01 00:02:18 +03:00
parent 8cdfaf36ae
commit d16748ac9f
3 changed files with 10 additions and 2 deletions

View File

@@ -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);