* command_validate_shard_key throws an error if the given shard key * BSON is not valid for the current extension. */
| 426 | * BSON is not valid for the current extension. |
| 427 | */ |
| 428 | Datum |
| 429 | command_validate_shard_key(PG_FUNCTION_ARGS) |
| 430 | { |
| 431 | pgbson *shardKeyDoc = PG_GETARG_PGBSON(0); |
| 432 | ValidateShardKey(shardKeyDoc); |
| 433 | PG_RETURN_VOID(); |
| 434 | } |
| 435 | |
| 436 | |
| 437 | static void |
nothing calls this directly
no test coverage detected