mirror of
https://github.com/isar/rusqlite.git
synced 2025-11-06 09:48:58 +08:00
Return an InvalidQuery error when SQL is not read only
This commit is contained in:
@@ -83,6 +83,11 @@ impl RawStatement {
|
||||
self.0 = ptr::null_mut();
|
||||
r
|
||||
}
|
||||
|
||||
#[cfg(feature = "bundled")]
|
||||
pub fn readonly(&self) -> bool {
|
||||
unsafe { ffi::sqlite3_stmt_readonly(self.0) != 0 }
|
||||
}
|
||||
}
|
||||
|
||||
impl Drop for RawStatement {
|
||||
|
||||
Reference in New Issue
Block a user