-
Type: Bug
-
Resolution: Duplicate
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
With this input file and mongoimport:
{ "_id" : 1, "_id" : "a" } { "_id" : 2, "_id" : "b" } { "_id" : 3, "_id" : "c" } { "_id" : 4, "_id" : "d" }
Produces this in the database:
ongoexport -d test -c dups connected to: 127.0.0.1 { "_id" : 1, "_id" : "a" } { "_id" : 2, "_id" : "b" } { "_id" : 3, "_id" : "c" } { "_id" : 4, "_id" : "d" }
Parser should probably catch this, or maybe a unique key contraint on the bson object.
- duplicates
-
SERVER-19361 Insert of document with duplicate _id fields should be forbidden
- Closed
- is related to
-
SERVER-5677 rewrite json parser
- Closed