* bson_to_bytea returns bytea from an input bson. */
| 268 | * bson_to_bytea returns bytea from an input bson. |
| 269 | */ |
| 270 | Datum |
| 271 | bson_to_bytea(PG_FUNCTION_ARGS) |
| 272 | { |
| 273 | pgbson *bson = PG_GETARG_PGBSON(0); |
| 274 | PG_RETURN_BYTEA_P(CastPgbsonToBytea(bson)); |
| 275 | } |
| 276 | |
| 277 | |
| 278 | /* |
nothing calls this directly
no test coverage detected