-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.2.2, 2.4.3
-
Component/s: Write Ops
-
None
-
Environment:OS X
-
ALL
Have a look at the resulting document, the 'key' subdocument repeats twice!:
test> db.test.update({'key':
{'nested': 1}, 'key.nested': 2}, {$set: {a:3}},
{upsert:true})
test> db.test.find()
{
"_id": ObjectId("518b90225fef1b6560f579c3"),
"a": 3,
"key":
,
"key":
}
- related to
-
SERVER-6439 Duplicate fields at the same level should not be allowed
- Backlog
-
SERVER-718 in JS shell, duplicated fields should print correctly
- Closed