Bug #16320 XML: extractvalue() won't accept names containing underscores
Submitted: 10 Jan 2006 0:29 Modified: 2 Mar 2006 8:09
Reporter: Peter Gulutzan
Status: Closed
Category:Server: XML Severity:S3 (Non-critical)
Version:5.1.5-alpha-debug OS:Linux (SUSE 10.0)
Assigned to: Sergey Gluhov Target Version:

[10 Jan 2006 0:29] Peter Gulutzan
Description:
With extractvalue(), I tried to use a name that contains '_'.
I got an error. There are other DBMSs that could handle this.

How to repeat:
mysql> select extractvalue('<A_B>A</A_B>','/A_B');
ERROR 1105 (HY000): XPATH syntax error: '_B'
[10 Jan 2006 0:51] Miguel Solorzano
mysql> select extractvalue('<A_B>A</A_B>','/A_B');
ERROR 1105 (HY000): XPATH syntax error: '_B'
[28 Feb 2006 15:57] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/3245
[28 Feb 2006 15:59] Alexander Barkov
The patch looks ok to push.
[1 Mar 2006 7:32] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/commits/3293
[1 Mar 2006 7:35] Sergey Gluhov
Fixed in 5.1.8
[2 Mar 2006 8:09] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Documented fix in 5.1.8 changelog. Closed.