* Appends given bool to the writer with the specified path. */
| 990 | * Appends given bool to the writer with the specified path. |
| 991 | */ |
| 992 | void |
| 993 | PgbsonWriterAppendBool(pgbson_writer *writer, const char *path, uint32_t pathLength, |
| 994 | bool value) |
| 995 | { |
| 996 | if (!bson_append_bool(&(writer->innerBson), path, pathLength, value)) |
| 997 | { |
| 998 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_BADVALUE), |
| 999 | errmsg( |
| 1000 | "adding Bool value: failed due to value being too large"))); |
| 1001 | } |
| 1002 | } |
| 1003 | |
| 1004 | |
| 1005 | /* |
no outgoing calls
no test coverage detected