[GODRIVER-566] Fix Equal method for bson.Value and update bson.Element.Equal to properly compare keys Created: 18/Sep/18  Updated: 28/Oct/23  Resolved: 27/Sep/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: None
Fix Version/s: 0.0.15

Type: Bug Priority: Major - P3
Reporter: Kristofer Brandow (Inactive) Assignee: Kristofer Brandow (Inactive)
Resolution: Fixed Votes: 0
Labels: beta
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Epic Link: BSON Encoder & Decoder Redesign

 Description   

The bson.Value.Equal method doesn't properly ignore keys when comparing values. Fix this method so that two values that are equal return true even if they have different keys. Additionally, add explicit key equality checking to the bson.Element.Equal method.



 Comments   
Comment by Githook User [ 15/May/19 ]

Author:

{'name': 'Kris Brandow', 'username': 'skriptble', 'email': 'kris@mongodb.com'}

Message: Split bson package and update mongo package

GODRIVER-537
GODRIVER-551
GODRIVER-527
GODRIVER-566

Change-Id: I55bdfe7f48ded7fd9923d906d3cc6ecaec8156da
Branch: bson-v2
https://github.com/mongodb/mongo-go-driver/commit/5d6145c8119e8c1b3b74a6b3a61f7191e2fb14e8

Comment by Githook User [ 27/Sep/18 ]

Author:

{'name': 'Kris Brandow', 'email': 'kris@mongodb.com', 'username': 'skriptble'}

Message: Split bson package and update mongo package

GODRIVER-537
GODRIVER-551
GODRIVER-527
GODRIVER-566
GODRIVER-494

Change-Id: I55bdfe7f48ded7fd9923d906d3cc6ecaec8156da
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/71de844febff6ac5b6fc6ba165e24e9677d2ee05

Comment by Kristofer Brandow (Inactive) [ 27/Sep/18 ]

Code Review: https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/424724.

Generated at Thu Feb 08 08:34:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.