MCPcopy Create free account
hub / github.com/documentdb/documentdb / extension_bson_compare

Function extension_bson_compare

pg_documentdb_core/src/query/bson_compare.c:62–73  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60PG_FUNCTION_INFO_V1(bson_in_range_numeric);
61
62Datum
63extension_bson_compare(PG_FUNCTION_ARGS)
64{
65 pgbson *leftBson = PG_GETARG_PGBSON_PACKED(0);
66 pgbson *rightBson = PG_GETARG_PGBSON_PACKED(1);
67
68 int compareResult = ComparePgbson(leftBson, rightBson);
69
70 PG_FREE_IF_COPY(leftBson, 0);
71 PG_FREE_IF_COPY(rightBson, 1);
72 PG_RETURN_INT32(compareResult);
73}
74
75
76Datum

Callers

nothing calls this directly

Calls 1

ComparePgbsonFunction · 0.85

Tested by

no test coverage detected