| 2083 | |
| 2084 | |
| 2085 | static bool |
| 2086 | IsSortPathFunctionOid(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 | |
| 2111 | inline static bool |
no test coverage detected