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

Function StripRelabels

pg_documentdb/src/opclass/index_support.c:1982–1991  ·  view source on GitHub ↗

Strips any RelabelType nodes from the expression, returning the underlying expression. */

Source from the content-addressed store, hash-verified

1980
1981/* Strips any RelabelType nodes from the expression, returning the underlying expression. */
1982static Expr *
1983StripRelabels(Expr *expr)
1984{
1985 while (expr != NULL && IsA(expr, RelabelType))
1986 {
1987 expr = (Expr *) ((RelabelType *) expr)->arg;
1988 }
1989
1990 return expr;
1991}
1992
1993
1994/* Returns the sort path from a constant BSON expression, or NULL if not applicable. */

Callers 1

CheckFieldCoverageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected