[GODRIVER-691] ArrayEncodeValue and SliceEncodeValue don't properly handle nil for primitive.Element Created: 12/Dec/18  Updated: 28/Oct/23  Resolved: 12/Dec/18

Status: Closed
Project: Go Driver
Component/s: BSON
Affects Version/s: 0.1.0
Fix Version/s: 0.2.0

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


 Description   

The ArrayEncodeValue and SliceEncodeValue methods do not have a primitive.E with nil as it's Value field. Fix these two methods to properly encode BSON null when they receive nil for the Value field.



 Comments   
Comment by Githook User [ 12/Dec/18 ]

Author:

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

Message: Merge branch 'pr/115'

GODRIVER-691

Change-Id: Iab74c96aa5caae87f9e206acbc6c0919b61a01ba
Branch: master
https://github.com/mongodb/mongo-go-driver/commit/120742f043d8d5cdc40d92a19239f5e3afc0f1dc

Comment by Kristofer Brandow (Inactive) [ 12/Dec/18 ]

Code Review: https://github.com/mongodb/mongo-go-driver/pull/115.

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