Details
-
Bug
-
Resolution: Works as Designed
-
Major - P3
-
None
-
3.6.7, 4.0.0
-
None
-
Windows
-
ALL
Description
Example shell output:
> db.dup.insert({_id:1, a:1, a:2})
WriteResult({ "nInserted" : 1 })
> db.dup.find()
InsertMany has the same problem:
> db.dup.insertMany([\{_id:1, a:1, a:2},\{_id:2,a:1,a:2}])
{ "acknowledged" : true, "insertedIds" : [ 1, 2 ] }> db.dup.find()
{ "_id" : 1, "a" : 2 } { "_id" : 2, "a" : 2 }Attachments
Issue Links
- related to
-
SERVER-6439 Duplicate fields at the same level should not be allowed
-
- Backlog
-