mirror of
https://github.com/simonw/sqlite-utils.git
synced 2026-07-23 01:14:31 +02:00
.update(...) with no update argument sets last_pk
This commit is contained in:
parent
4ab8d46b03
commit
bc9c4db34b
2 changed files with 19 additions and 0 deletions
|
|
@ -783,6 +783,8 @@ class Table:
|
|||
pk_values = [pk_values]
|
||||
# Sanity check that the record exists (raises error if not):
|
||||
self.get(pk_values)
|
||||
if not updates:
|
||||
return self
|
||||
args = []
|
||||
sets = []
|
||||
wheres = []
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue