[SERVER-718] in JS shell, duplicated fields should print correctly Created: 08/Mar/10  Updated: 05/Apr/17  Resolved: 03/Feb/17

Status: Closed
Project: Core Server
Component/s: JavaScript, Shell
Affects Version/s: None
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Mathias Stearn Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Won't Fix Votes: 1
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Duplicate
is duplicated by SERVER-8101 BSON Obj Behavior while storing data... Closed
is duplicated by SERVER-7949 BSON interceptors for v8 do not prope... Closed
Related
related to SERVER-1606 Oplog entries contain repeated fields... Closed
is related to SERVER-9637 Upsert with filters for a subdocument... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

currently it prints both but uses the same value.

mongosniff:
{ ts: Timestamp 1268080468000|1, op: "u", ns: "test.c", o2:

{ _id: 0.0 }

, o: { $set:

{ a: 3.0 }

, $set:

{ z: 3.0 }

} }

JS Shell:
{"ts" :

{ "t" : 1268080468000, "i" : 1 }

, "op" : "u", "ns" : "test.c", "o2" :

{ "_id" : 0 }

, "o" : { "$set" :

{ "a" : 3 }

, "$set" :

{ "a" : 3 }

} }


Generated at Thu Feb 08 02:54:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.