Details
-
Bug
-
Resolution: Done
-
Major - P3
-
1.7.1
-
None
-
None
-
MongoDB C# Driver.
Description
UpdateBuilder.Set throws InvalidOperationException when Set twice with the same element.
Eg:
UpdateQuerySet.Set("Email", value1);
UpdateQuerySet.Set("Email", value2);
Ideally, it should have overwritten the first value. Or even, as a worst case, it should just add the second value along, since update({},
{"email": "value1", "email" : "value2"}works on perfectly as a command when given directly using the MongoDB shell.
Attachments
Issue Links
- depends on
-
CSHARP-474 Review all exceptions thrown by the C# driver
-
- Closed
-
- is duplicated by
-
CSHARP-902 UpdateBuilder.Set should overwrite value if called twice with the same field
-
- Closed
-