mirror of
https://github.com/isar/rusqlite.git
synced 2025-12-20 18:32:25 +08:00
Impossible to execute a pragma in 0.14.0 #400
sqlite3_stmt_readonly does not work for PRAGMA.
This commit is contained in:
@@ -516,15 +516,17 @@ impl<'conn> Statement<'conn> {
|
||||
}
|
||||
|
||||
#[cfg(not(feature = "bundled"))]
|
||||
#[inline]
|
||||
fn check_readonly(&self) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[cfg(feature = "bundled")]
|
||||
#[inline]
|
||||
fn check_readonly(&self) -> Result<()> {
|
||||
if !self.stmt.readonly() {
|
||||
/*if !self.stmt.readonly() { does not work for PRAGMA
|
||||
return Err(Error::InvalidQuery);
|
||||
}
|
||||
}*/
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user