• unknown's avatar
    Bug#24747 XPath error with the node name "Text" · 38fd1867
    unknown authored
    
    mysql-test/r/xml.result:
      Adding test case
    mysql-test/t/xml.test:
      Adding test case
    sql/item_xmlfunc.cc:
      Bug#24747 XPath error with the node name "Text"
      
      Problem: keywords, nodetype names and axis names
      didn't work in node name context.
      
      Fix:
      1. Changes in lexem scanner behaviour when an identifier has been read:
      - search through axis names and return MY_XPATH_AXIS_xxx only
        when identifier is followed by two semicolons. Don't check axis
        names and return MY_XPATH_IDENT of not followed by two semicolons.
      - search through nodetype names and return MY_XPATH_LEX_NODETYPE
        only when identifier is followed by left parenthesis.
        Don't check nodetype names and return MY_XPATH_LEX_IDENT when
        not followed by parenthesis
      2. Change in syntax analizer: QName scanner now accepts keywords 
         AND, OR, MOD, DIV as valid node names.
    38fd1867
item_xmlfunc.cc 69.9 KB