| 899 | * Appends given double to the writer with the specified path. |
| 900 | */ |
| 901 | pgbson_require_alignment() void |
| 902 | PgbsonWriterAppendDouble(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 | /* |
no outgoing calls
no test coverage detected