[CDRIVER-402] C Driver: appending undefined instead of null Created: 01/Aug/14  Updated: 03/May/17  Resolved: 05/Aug/14

Status: Closed
Project: C Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Anil Kumar Assignee: Christian Hergert
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends

 Description   

There is a bug in the C driver where it appends undefined instead of null in bson_append_iter (https://github.com/mongodb/libbson/blob/master/src/bson/bson.c#L1245-L1247):

case BSON_TYPE_NULL:
   ret = bson_append_undefined (bson, key, key_length);
   break;

A similar append in bson_append_value at https://github.com/mongodb/libbson/blob/master/src/bson/bson.c#L1723-L1725 seems to be correctly implemented.



 Comments   
Comment by Christian Hergert [ 05/Aug/14 ]

Merged to master, thanks!

Generated at Wed Feb 07 21:09:23 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.