• bar@mysql.com's avatar
    Bug #18172 XML: Extractvalue() accepts mallformed · 2e7cf881
    bar@mysql.com authored
      XPath without a XPath syntax error
    item_xmlfunc.cc:
      Error message didn't happen because after
      a failing attempt to parse RelativeLocationPath,
      my_xpath_parse_AbsoluteLocationPath() returned success.
      Changeing logic a bit:
      - Try to parse EOF first, return success if true.
      - Then try to parse RelativeLocationPath(), return success if true.
      - Otherwise return failure.
    xml.result:
      Adding test case.
      Also, this change made it possible to generate 
      an error message earlier in the case of another
      bad XPATH syntax.
    xml.test:
      Adding test case.
    2e7cf881
xml.result 20.7 KB