* Appends a given null value to the writer with the specified path. */
| 1446 | * Appends a given null value to the writer with the specified path. |
| 1447 | */ |
| 1448 | void |
| 1449 | PgbsonWriterAppendNull(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 | /* |
no outgoing calls
no test coverage detected