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

Function MakeLowerBoundIdExpr

pg_documentdb/src/query/query_operator.c:3912–3928  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3910
3911
3912Expr *
3913MakeLowerBoundIdExpr(const bson_value_t *filterValue, Index collectionVarno)
3914{
3915 bson_value_t minBound = { 0 };
3916
3917 if (filterValue->value_type == BSON_TYPE_MAXKEY)
3918 {
3919 minBound.value_type = BSON_TYPE_MINKEY;
3920 }
3921 else
3922 {
3923 minBound = GetLowerBound(filterValue->value_type);
3924 }
3925
3926 return MakeSimpleIdExpr(&minBound, collectionVarno,
3927 BsonGreaterThanEqualOperatorId());
3928}
3929
3930
3931Expr *

Callers 2

CheckAndAddIdFilterFunction · 0.85

Calls 3

GetLowerBoundFunction · 0.85
MakeSimpleIdExprFunction · 0.85

Tested by

no test coverage detected