-
Notifications
You must be signed in to change notification settings - Fork 578
Open
Description
Version: tinydb==4.8.2
Here's the database:
{"_default": {"1": {"name": "bob", "age": 25, "belly": "blown"}, "2": {"name": "dylan", "age": 26, "belly": "flat"}, "3": {"name": "inflated", "age": 27, "belly": "inflated"}}}
Here's the code:
db.update({'name': 'cooper'}, Query().belly == Query().name)
or
db.update({'name': 'cooper'}, Query()['belly'] == Query().['name'])
Expected result : only the last entry should have its name updated (because both "belly" and "name" are "inflated")
Actual result : all entries have their names updated
Metadata
Metadata
Assignees
Labels
No labels