[SERVER-8101] BSON Obj Behavior while storing data into Database Created: 19/Oct/12 Updated: 07/Apr/23 Resolved: 07/Jan/13 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Blocker - P1 |
| Reporter: | Shripad Bhargave | Assignee: | Unassigned |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | driver | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
RHEL 6 |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Participants: | |||||||||
| Description |
|
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 : then after insertion below query run from mongclient to display inserted contents of BSONObj ) { "_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. |
| Comments |
| Comment by Scott Hernandez (Inactive) [ 07/Jan/13 ] |
|
This is duplicate of this shell printing issue: |