MCPcopy Create free account
hub / github.com/documentdb/documentdb / PgbsonWriterAppendNull

Function PgbsonWriterAppendNull

pg_documentdb_core/src/io/pgbson.c:1448–1457  ·  view source on GitHub ↗

* Appends a given null value to the writer with the specified path. */

Source from the content-addressed store, hash-verified

1446 * Appends a given null value to the writer with the specified path.
1447 */
1448void
1449PgbsonWriterAppendNull(pgbson_writer *writer, const char *path, uint32_t pathLength)
1450{
1451 if (!bson_append_null(&(writer->innerBson), path, pathLength))
1452 {
1453 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), errmsg(
1454 "adding AppendEmptyArray value: failed due to value being too large"))
1455 );
1456 }
1457}
1458
1459
1460/*

Callers 5

BsonRepathAndBuildCoreFunction · 0.85
BuildResponseMessageFunction · 0.85
SliceHandlerFuncFunction · 0.85
BsonUnwindEmptyArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected