MCPcopy Create free account
hub / github.com/apache/cloudberry / leftmostLoc

Function leftmostLoc

src/backend/nodes/nodeFuncs.c:1689–1698  ·  view source on GitHub ↗

* leftmostLoc - support for exprLocation * * Take the minimum of two parse location values, but ignore unknowns */

Source from the content-addressed store, hash-verified

1687 * Take the minimum of two parse location values, but ignore unknowns
1688 */
1689static int
1690leftmostLoc(int loc1, int loc2)
1691{
1692 if (loc1 < 0)
1693 return loc2;
1694 else if (loc2 < 0)
1695 return loc1;
1696 else
1697 return Min(loc1, loc2);
1698}
1699
1700
1701/*

Callers 1

exprLocationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected