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

Function PgbsonWriterAppendDouble

pg_documentdb_core/src/io/pgbson.c:901–911  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

899 * Appends given double to the writer with the specified path.
900 */
901pgbson_require_alignment() void
902PgbsonWriterAppendDouble(pgbson_writer *writer, const char *path, uint32_t pathLength,
903 double value)
904{
905 if (!bson_append_double(&(writer->innerBson), path, pathLength, value))
906 {
907 ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE),
908 errmsg(
909 "adding Double value: failed due to value being too large")));
910 }
911}
912
913
914/*

Callers 15

command_get_shard_mapFunction · 0.85
command_list_shardsFunction · 0.85
command_rebalancer_startFunction · 0.85
command_rebalancer_stopFunction · 0.85
BuildResponseMessageFunction · 0.85
BuildResponseMessageFunction · 0.85
BuildResponseMessageFunction · 0.85
command_kill_opFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected