[CDRIVER-3345] Document that bson_append_utf8 and bson_append_symbol append a BSON NULL if given NULL Created: 28/Aug/19  Updated: 28/Oct/23  Resolved: 14/Jan/20

Status: Closed
Project: C Driver
Component/s: docs, libbson
Affects Version/s: None
Fix Version/s: 1.16.0

Type: Improvement Priority: Trivial - P5
Reporter: Kevin Albertson Assignee: Kevin Albertson
Resolution: Fixed Votes: 0
Labels: neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Oddly, libbson will append a BSON NULL element (instead of an empty string/symbol, or instead of asserting) when given NULL as the argument to append

Changing this behavior would be backwards breaking, but we should at least update documentation.



 Comments   
Comment by Githook User [ 14/Jan/20 ]

Author:

{'name': 'Kevin Albertson', 'email': 'kevin.albertson@mongodb.com', 'username': 'kevinAlbs'}

Message: CDRIVER-3345 document behavior of appending NULL
Branch: master
https://github.com/mongodb/mongo-c-driver/commit/16ed48366b34a02e9d4fa443e63ad82c718d6eb8

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