Replace execute_batch usages by execute

Because execute_batch does not support unlock_notify
This commit is contained in:
gwenn
2020-06-24 19:33:34 +02:00
committed by Thom Chiovoloni
parent a9b700c841
commit f37519ad51
3 changed files with 11 additions and 9 deletions

View File

@@ -646,7 +646,7 @@ impl Statement<'_> {
#[inline]
fn check_update(&self) -> Result<()> {
// sqlite3_column_count works for DML but not for DDL (ie ALTER)
if self.column_count() > 0 || self.stmt.readonly() {
if self.column_count() > 0 && self.stmt.readonly() {
return Err(Error::ExecuteReturnedResults);
}
Ok(())