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

Function extension_bson_gte

pg_documentdb_core/src/query/bson_compare.c:146–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144
145
146Datum
147extension_bson_gte(PG_FUNCTION_ARGS)
148{
149 pgbson *leftBson = PG_GETARG_PGBSON_PACKED(0);
150 pgbson *rightBson = PG_GETARG_PGBSON_PACKED(1);
151
152 int compareResult = ComparePgbson(leftBson, rightBson);
153
154 PG_FREE_IF_COPY(leftBson, 0);
155 PG_FREE_IF_COPY(rightBson, 1);
156 PG_RETURN_BOOL(compareResult >= 0);
157}
158
159
160Datum

Callers

nothing calls this directly

Calls 1

ComparePgbsonFunction · 0.85

Tested by

no test coverage detected