mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-07 11:48:58 +08:00
Partial fix following John suggestions.
This commit is contained in:
10
src/lib.rs
10
src/lib.rs
@@ -929,7 +929,15 @@ impl<'conn> Statement<'conn> {
|
||||
}
|
||||
}
|
||||
|
||||
fn sql(&self) -> String { // TODO Maybe SQL should by kept as an SqliteStatement field ?
|
||||
#[cfg(feature = "cache")]
|
||||
fn clear_bindings(&mut self) {
|
||||
unsafe {
|
||||
ffi::sqlite3_clear_bindings(self.stmt);
|
||||
};
|
||||
}
|
||||
|
||||
#[cfg(feature = "cache")]
|
||||
fn sql(&self) -> String {
|
||||
unsafe {
|
||||
let c_slice = CStr::from_ptr(ffi::sqlite3_sql(self.stmt)).to_bytes();
|
||||
let utf8_str = str::from_utf8(c_slice);
|
||||
|
||||
Reference in New Issue
Block a user