Return an InvalidQuery error when SQL is not read only

This commit is contained in:
gwenn
2018-08-10 20:48:13 +02:00
parent a4273739ab
commit 31de0187a2
3 changed files with 27 additions and 1 deletions

View File

@@ -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 {