* Appends a given integer to the writer with the specified path. */
| 883 | * Appends a given integer to the writer with the specified path. |
| 884 | */ |
| 885 | void |
| 886 | PgbsonWriterAppendInt32(pgbson_writer *writer, const char *path, uint32_t pathLength, |
| 887 | int value) |
| 888 | { |
| 889 | if (!bson_append_int32(&(writer->innerBson), path, pathLength, value)) |
| 890 | { |
| 891 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), |
| 892 | errmsg( |
| 893 | "adding Int32 value: failed due to value being too large"))); |
| 894 | } |
| 895 | } |
| 896 | |
| 897 | |
| 898 | /* |
no outgoing calls
no test coverage detected