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

Function my_xpath_parse_EqualityExpr

sql/item_xmlfunc.cc:2132–2156  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2130 return 0;
2131}
2132static int my_xpath_parse_EqualityExpr(MY_XPATH *xpath)
2133{
2134 MY_XPATH_LEX operator_context;
2135 if (!my_xpath_parse_RelationalExpr(xpath))
2136 return 0;
2137
2138 operator_context= xpath->lasttok;
2139 while (my_xpath_parse_EqualityOperator(xpath))
2140 {
2141 Item *prev= xpath->item;
2142 int oper= xpath->extra;
2143 if (!my_xpath_parse_RelationalExpr(xpath))
2144 {
2145 xpath->error= 1;
2146 return 0;
2147 }
2148
2149 if (!(xpath->item= create_comparator(xpath, oper, &operator_context,
2150 prev, xpath->item)))
2151 return 0;
2152
2153 operator_context= xpath->lasttok;
2154 }
2155 return 1;
2156}
2157
2158
2159/*

Callers 1

my_xpath_parse_AndExprFunction · 0.85

Calls 3

create_comparatorFunction · 0.85

Tested by

no test coverage detected