An error occurred fetching the project authors.
  1. 07 Apr, 2006 1 commit
  2. 20 Mar, 2006 1 commit
    • unknown's avatar
      Bug #18172 XML: Extractvalue() accepts mallformed · 5f8bd7fe
      unknown 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.
      
      
      sql/item_xmlfunc.cc:
        Bug #18172 XML: Extractvalue() accepts mallformed XPath without a XPath syntax error
        Error message didn't happen because after
        a failing attempt to parse RelativeLocationPath(),
        my_xpath_parse_AbsoluteLocationPath() returned with 1.
        Changeing logic a bit: check for EOF first.
        Then try to parse RelativeLocationPath().
        If the latter fails, return failure.
      mysql-test/t/xml.test:
        Adding test case.
      mysql-test/r/xml.result:
        Adding test case.
        Also, this change makes error message
        to be generated earlier in the case of another
        bad XPATH syntax.
      5f8bd7fe
  3. 15 Mar, 2006 1 commit
    • unknown's avatar
      xml.result, xml.test: · 1dc87feb
      unknown authored
        Adding test.
      item_xmlfunc.cc:
        Bug #18171 XML: ExtractValue: the XPath position() function crashes the server!
        Disallowing use of position() and last() without context.
      
      
      sql/item_xmlfunc.cc:
        Bug #18171 XML: ExtractValue: the XPath position() function crashes the server!
        Disallowing use of position() and last() without context.
      mysql-test/t/xml.test:
        Adding test.
      mysql-test/r/xml.result:
        Adding test.
      1dc87feb
  4. 03 Mar, 2006 1 commit
    • unknown's avatar
      Bug#16318: XML: extractvalue() incorrectly returns last() = 1 · a5694ba4
      unknown authored
      xml.result, xml.test:
        Adding test case.
      item_xmlfunc.cc:
        - adding "size" member into MY_XPATH_FLT struct,
        to pass parent's context size when iterating
        in a predicate. Previously, temporaty context
        size was calculated instead, which is always 1.
        As a result, things like last() and count() 
        didn't work fine.
        - adding iteration into Item_func_xpath_elementbyindex:
        similar to Item_func_xpath_predicate.
        This is to make things like last() and count()
        work inside square brackets.
      
      
      sql/item_xmlfunc.cc:
        Bug#16318: XML: extractvalue() incorrectly returns last() = 1
        - adding "size" member into MY_XPATH_FLT struct,
        to pass parent's context size when iterating
        in a predicate. Previously, temporaty context
        size was calculated instead, which is always 1.
        As a result, things like last() and count() 
        didn't work fine.
        - adding iteration into Item_func_xpath_elementbyindex:
        similar to Item_func_xpath_predicate.
        This is to make things like last() and count()
        work inside square brackets.
      mysql-test/t/xml.test:
        Adding test case.
      mysql-test/r/xml.result:
        Adding test case.
      a5694ba4
  5. 02 Mar, 2006 1 commit
    • unknown's avatar
      Bug#16316: XML: extractvalue() is case-sensitive with contains() · c76459ac
      unknown authored
      xml.result, xml.test:
        Adding test case.
      item_xmlfunc.cc:
        Fixed that Item_nodeset_func derived classes
        didn't take into account charset of the XML value
        and always worked using "binary" charset.
      
      
      sql/item_xmlfunc.cc:
        Bug#16316: XML: extractvalue() is case-sensitive with contains()
        Fixed that Item_nodeset_func derived classes
        didn't take into account charset of the XML value
        and always worked using "binary" charset.
      mysql-test/t/xml.test:
        Adding test case.
      mysql-test/r/xml.result:
        Adding test case.
      c76459ac
  6. 01 Mar, 2006 2 commits
    • unknown's avatar
      Bug#16315 XML: extractvalue() handles self badly · 3f480fcb
      unknown authored
      xml.result, xml.test:
        Adding test case.
      item_xmlfunc.cc:
        Adding a special function to handle "self" axis.
        Previously "child" and "self" were handled the same.
      
      
      sql/item_xmlfunc.cc:
        Bug#16315 XML: extractvalue() handles self badly
        Adding a special function to handle "self" axis.
        Previously "child" and "self" were handled the same.
      mysql-test/t/xml.test:
        Adding test case.
      mysql-test/r/xml.result:
        Adding test case.
      3f480fcb
    • unknown's avatar
      Bug#16320 XML: extractvalue() won't accept names containing underscores · 0466a909
      unknown authored
        added '_' to allowed tag body symbols
      
      
      mysql-test/r/xml.result:
        Bug#16320 XML: extractvalue() won't accept names containing underscores
          test case
      mysql-test/t/xml.test:
        Bug#16320 XML: extractvalue() won't accept names containing underscores
          test case
      0466a909
  7. 28 Feb, 2006 1 commit
    • unknown's avatar
      Bug#16313 XML: extractvalue() ignores '!' in names · 828de833
      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.
      828de833
  8. 27 Feb, 2006 1 commit
    • unknown's avatar
      xml.test: · e2393aa2
      unknown authored
      xml.result:
        Adding test for Bug #16312 XML: extractvalue() crash if angle brackets,
        A fix for #16234 fixed this bug automatically.
      
      
      mysql-test/t/xml.test:
        Adding test for Bug #16312 XML: extractvalue() crash if angle brackets,
        A fix for #16234 fixed this bug automatically.
      e2393aa2
  9. 10 Feb, 2006 1 commit
    • unknown's avatar
      Bug#16234 XML: Crash if ExtractValue() · c7367087
      unknown authored
        Also fixes 16314: XML: extractvalue() crash if vertical bar
      xml.result, xml.test:
        Adding test case
      item_xmlfunc.cc:
        Using root element as a context node,
        instead of NULL, with relative paths.
      
      
      sql/item_xmlfunc.cc:
        Bug#16234 XML: Crash if ExtractValue()
        Also fixes 16314: XML: extractvalue() crash if vertical bar
        Use root element as a context node,
        instead of NULL, with relative paths.
      mysql-test/t/xml.test:
        Adding test case
      mysql-test/r/xml.result:
        Adding test case
      c7367087
  10. 21 Dec, 2005 1 commit
    • unknown's avatar
      Adding XPath support: ExtractValue and UpdateXML functions. · 5e4c3ce6
      unknown authored
      libmysqld/Makefile.am:
      sql/Makefile.am:
        Adding new source files.
        Adding new file into build process.
      include/my_xml.h:
      strings/xml.c:
        Adding new XML parse flags to skip text normalization and 
        to use relative tag names. Adding enum for XML token types.
      sql/lex.h:
        Making parser aware of new SQL functions.
      sqll/item_create.h, sql/item_create.cc:
        Adding creators for ExtractValue and UpdateXML.
      sql/item.h:
        Adding new Item types: nodeset and nodeset comparator.
      sql/item_xmlfunc.h
      sql/item_xmlfunc.cc
        Adding new classes implementing XPath functions.
      mysql-test/t/xml.test, mysql-test/r/xml.result:
        New files: adding test case
      
      
      include/my_xml.h:
        Adding ExtractValue and UpdateXML functions.
        Adding XML parser flags and enum for XML token types.
      sql/Makefile.am:
        Adding new source files.
      sql/item.h:
        Adding new Item types: nodeset and nodeset comparator.
      sql/item_create.cc:
        Adding creators for ExtractValue and UpdateXML.
      sql/item_create.h:
        Adding creators for ExtractValue and UpdateXML.
      sql/lex.h:
        Make parse aware of new SQL functions.
      strings/xml.c:
        Adding new flags to skip text normalization and 
        to use relative tag names.
      libmysqld/Makefile.am:
        Adding new file into build process.
      5e4c3ce6