• unknown's avatar
    Bug#16313 XML: extractvalue() ignores '!' in names · 1cb4810a
    unknown authored
    xml.result, xml.test:
      Adding test case.
    item_xmlfunc.cc:
      Fixed that the "!" character written at the end was ignored.
    
      Now if we try to scan "!=", and if "!" is not
      followed by "=", we rollback lex scanner back 
      to "!" token, so the parser will start to check
      the next rule from the "!" character again.
    
      Previously parser started from the next character,
      which was EOF in the example in xml.test,
      which led to query being successfully parsed,
      instead of producing a syntax error.
    
    
    sql/item_xmlfunc.cc:
      Bug#16313 XML: extractvalue() ignores '!' in names
      '!' at the end was ignored.
      Now if we try to scan "!=", and if "!" is not
      followed by "=", we rollback lex scanner back 
      to "!" token, so the parser will start to check
      the next rule from the "!" character again.
      Previously it started from the next character,
      which was EOF in the example in xml.test, and
      which led to query being successfully parsed,
      instead of producing a syntax error.
    mysql-test/t/xml.test:
      Adding test case.
    mysql-test/r/xml.result:
      Adding test case.
    1cb4810a
xml.test 9.75 KB