MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / my_xpath_parse_LocationPath

Function my_xpath_parse_LocationPath

sql/item_xmlfunc.cc:1521–1533  ·  view source on GitHub ↗

Scan LocationPath SYNOPSYS [1] LocationPath ::= RelativeLocationPath | AbsoluteLocationPath [3] RelativeLocationPath ::= RelativeLocationPath '/' Step RETURN 1 - success 0 - failure */

Source from the content-addressed store, hash-verified

1519 0 - failure
1520*/
1521static int my_xpath_parse_LocationPath(MY_XPATH *xpath)
1522{
1523 Item *context= xpath->context;
1524
1525 if (!xpath->context)
1526 xpath->context= xpath->rootelement;
1527 int rc= my_xpath_parse_RelativeLocationPath(xpath) ||
1528 my_xpath_parse_AbsoluteLocationPath(xpath);
1529
1530 xpath->item= xpath->context;
1531 xpath->context= context;
1532 return rc;
1533}
1534
1535
1536/*

Callers 1

my_xpath_parse_PathExprFunction · 0.85

Tested by

no test coverage detected