* Appends given int64 to the writer with the specified path. */
| 867 | * Appends given int64 to the writer with the specified path. |
| 868 | */ |
| 869 | void |
| 870 | PgbsonWriterAppendInt64(pgbson_writer *writer, const char *path, uint32_t pathLength, |
| 871 | int64 value) |
| 872 | { |
| 873 | if (!bson_append_int64(&(writer->innerBson), path, pathLength, value)) |
| 874 | { |
| 875 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), |
| 876 | errmsg( |
| 877 | "adding Int64 value: failed due to value being too large"))); |
| 878 | } |
| 879 | } |
| 880 | |
| 881 | |
| 882 | /* |
no outgoing calls
no test coverage detected