mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-09-19 23:14:09 +02:00
fix: auto-commit delete_where()
This commit is contained in:
parent
8d74ffc932
commit
fcbab3649d
2 changed files with 18 additions and 3 deletions
|
|
@ -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(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue