Commit fbd699fe authored by unknown's avatar unknown

item_xmlfunc.cc:

  After review fix.
  Thanks to Gluh for suggestion.
  Bug#18172: XML: Extractvalue() accepts mallformed XPath without a XPath syntax error


sql/item_xmlfunc.cc:
  After review fix.
  Thanks to Gluh for suggestion.
  Bug#18172: XML: Extractvalue() accepts mallformed XPath without a XPath syntax error
parent 84204730
...@@ -1561,13 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath) ...@@ -1561,13 +1561,8 @@ static int my_xpath_parse_AbsoluteLocationPath(MY_XPATH *xpath)
return my_xpath_parse_RelativeLocationPath(xpath); return my_xpath_parse_RelativeLocationPath(xpath);
} }
if (my_xpath_parse_term(xpath, MY_XPATH_LEX_EOF)) return my_xpath_parse_term(xpath, MY_XPATH_LEX_EOF) ||
return 1; my_xpath_parse_RelativeLocationPath(xpath);
if (my_xpath_parse_RelativeLocationPath(xpath))
return 1;
return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment