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

Function my_xpath_parse_RelationalExpr

sql/item_xmlfunc.cc:2193–2216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2191 return 0;
2192}
2193static int my_xpath_parse_RelationalExpr(MY_XPATH *xpath)
2194{
2195 MY_XPATH_LEX operator_context;
2196 if (!my_xpath_parse_AdditiveExpr(xpath))
2197 return 0;
2198 operator_context= xpath->lasttok;
2199 while (my_xpath_parse_RelationalOperator(xpath))
2200 {
2201 Item *prev= xpath->item;
2202 int oper= xpath->extra;
2203
2204 if (!my_xpath_parse_AdditiveExpr(xpath))
2205 {
2206 xpath->error= 1;
2207 return 0;
2208 }
2209
2210 if (!(xpath->item= create_comparator(xpath, oper, &operator_context,
2211 prev, xpath->item)))
2212 return 0;
2213 operator_context= xpath->lasttok;
2214 }
2215 return 1;
2216}
2217
2218
2219/*

Callers 1

Calls 3

create_comparatorFunction · 0.85

Tested by

no test coverage detected