mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-07 11:48:58 +08:00
Replace LruCache by VecDeque.
This commit is contained in:
@@ -937,11 +937,10 @@ impl<'conn> Statement<'conn> {
|
||||
}
|
||||
|
||||
#[cfg(feature = "cache")]
|
||||
fn sql(&self) -> String {
|
||||
fn eq(&self, sql: &str) -> bool {
|
||||
unsafe {
|
||||
let c_slice = CStr::from_ptr(ffi::sqlite3_sql(self.stmt)).to_bytes();
|
||||
let utf8_str = str::from_utf8(c_slice);
|
||||
utf8_str.unwrap().to_string()
|
||||
str::from_utf8(c_slice).unwrap().eq(sql)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user