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

Function IsSortPathFunctionOid

pg_documentdb/src/opclass/index_support.c:2085–2108  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2083
2084
2085static bool
2086IsSortPathFunctionOid(Oid oid)
2087{
2088 if (oid == BsonOrderByFunctionOid() ||
2089 oid == BsonOrderByWithCollationFunctionOid() ||
2090 oid == BsonOrderByIndexFunctionOid() ||
2091 oid == BsonOrderByIndexReverseFunctionOid())
2092 {
2093 return true;
2094 }
2095 if (IsClusterVersionAtleast(DocDB_V0, 110, 0) &&
2096 oid == BsonOrderByIndexWithCollationFunctionOid())
2097 {
2098 return true;
2099 }
2100
2101 if (IsClusterVersionAtleast(DocDB_V0, 111, 0) &&
2102 oid == BsonOrderByIndexWithCollationReverseFunctionOid())
2103 {
2104 return true;
2105 }
2106
2107 return false;
2108}
2109
2110
2111inline static bool

Callers 1

CheckFieldCoverageFunction · 0.85

Tested by

no test coverage detected