-
-
Notifications
You must be signed in to change notification settings - Fork 98
Description
Given a NitriteCollection labeled list exists, for which there is a unique index for field "Data"
Given a document labeled 1 exists in the collection list with field "Data" = "test"
Given another document labeled 2 exists in the collection list with field "Data" = "test2"
[ { "_id": 1, "Data": "test"}, { "_id": 2, "Data": "test2"} ]
Reproduction steps: 2 would be updated so that "Data" changes to "test" knowing that the same value already exists on 1 and would violate the unique constraint. This would be achived by fetching 2 from the collection, setting "Data" to test and attempting to call update on the collection to store the changes.
Expectation: an exception is raised similar to a scenario where a third document with "Data" = "test" would be inserted.
Observation: no exception is raised. The change is stored and now the value "test" is not unique anymore within list - despite the unique constraint.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status