-
Type: Bug
-
Resolution: Duplicate
-
Priority: Blocker - P1
-
None
-
Affects Version/s: None
-
Component/s: None
-
Environment:RHEL 6
-
Linux
WE have issue with Holding BSONObj behaviour while holding values for Duplicate keys.
When we create BSON Obj and append some keys with same name using C++ driver and prints it contains then it shows all four keys with different values.
when we insert this created BSONObj into mongodb using C++ driver and check contains for perticuler row then it show that all keys having same value i.e. value of first key.
while the expected behaviour was the inserted row shall contain keys with same name but different values.
Example :
void somefuct()
then after insertion below query run from mongclient to display inserted contents of BSONObj
> db.drill11.find({},
)
{ "_id" : ObjectId("5080e294899514c25a7139e5"), "inserTimestamp" : 1, "inserTimestamp" : 1, "inserTimestamp" : 1, "inserTimestamp" : 1 }so table have 4 columns with same keyname and same value which was not expected.
Kindy let us know on this behavior.
- duplicates
-
SERVER-718 in JS shell, duplicated fields should print correctly
- Closed