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

Function extension_bson_lt

pg_documentdb_core/src/query/bson_compare.c:104–115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

102
103
104Datum
105extension_bson_lt(PG_FUNCTION_ARGS)
106{
107 pgbson *leftBson = PG_GETARG_PGBSON_PACKED(0);
108 pgbson *rightBson = PG_GETARG_PGBSON_PACKED(1);
109
110 int compareResult = ComparePgbson(leftBson, rightBson);
111
112 PG_FREE_IF_COPY(leftBson, 0);
113 PG_FREE_IF_COPY(rightBson, 1);
114 PG_RETURN_BOOL(compareResult < 0);
115}
116
117
118Datum

Callers

nothing calls this directly

Calls 1

ComparePgbsonFunction · 0.85

Tested by

no test coverage detected