.update(...) with no update argument sets last_pk

This commit is contained in:
Simon Willison 2019-07-28 17:59:52 +03:00
commit bc9c4db34b
2 changed files with 19 additions and 0 deletions

View file

@ -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 = []