mirror of
https://github.com/isar/rusqlite.git
synced 2025-09-16 04:32:19 +08:00
Replace execute_batch usages by execute
Because execute_batch does not support unlock_notify
This commit is contained in:
@@ -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(())
|
||||
|
Reference in New Issue
Block a user