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

Function extension_bson_gt

pg_documentdb_core/src/query/bson_compare.c:132–143  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131
132Datum
133extension_bson_gt(PG_FUNCTION_ARGS)
134{
135 pgbson *leftBson = PG_GETARG_PGBSON_PACKED(0);
136 pgbson *rightBson = PG_GETARG_PGBSON_PACKED(1);
137
138 int compareResult = ComparePgbson(leftBson, rightBson);
139
140 PG_FREE_IF_COPY(leftBson, 0);
141 PG_FREE_IF_COPY(rightBson, 1);
142 PG_RETURN_BOOL(compareResult > 0);
143}
144
145
146Datum

Callers

nothing calls this directly

Calls 1

ComparePgbsonFunction · 0.85

Tested by

no test coverage detected