* Validates a user input bson for the specified flags, to ensure it's compatible with the database. */
| 488 | * Validates a user input bson for the specified flags, to ensure it's compatible with the database. |
| 489 | */ |
| 490 | void |
| 491 | PgbsonValidateInputBson(const pgbson *bsonDocument, bson_validate_flags_t validateFlag) |
| 492 | { |
| 493 | ValidateInputBsonBytes((const uint8_t *) VARDATA_ANY(bsonDocument), |
| 494 | VARSIZE_ANY_EXHDR(bsonDocument), validateFlag); |
| 495 | } |
| 496 | |
| 497 | |
| 498 | /* |
no test coverage detected