fix: auto-commit delete_where()

This commit is contained in:
cloudyun888 2026-04-22 15:14:25 +08:00
commit fcbab3649d
No known key found for this signature in database
2 changed files with 18 additions and 3 deletions

View file

@ -2905,9 +2905,10 @@ class Table(Queryable):
sql = "delete from {}".format(quote_identifier(self.name))
if where is not None:
sql += " where " + where
self.db.execute(sql, where_args or [])
if analyze:
self.analyze()
with self.db.conn:
self.db.execute(sql, where_args or [])
if analyze:
self.analyze()
return self
def update(