Bug #16320 XML: extractvalue() won't accept names containing underscores
Submitted: 9 Jan 2006 23:29 Modified: 2 Mar 2006 7:09
Reporter: Peter Gulutzan Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: XML functions Severity:S3 (Non-critical)
Version:5.1.5-alpha-debug OS:Linux (SUSE 10.0)
Assigned to: Sergey Glukhov CPU Architecture:Any

[9 Jan 2006 23: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'
[9 Jan 2006 23:51] Miguel Solorzano
mysql> select extractvalue('<A_B>A</A_B>','/A_B');
ERROR 1105 (HY000): XPATH syntax error: '_B'
[28 Feb 2006 14: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 14:59] Alexander Barkov
The patch looks ok to push.
[1 Mar 2006 6: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 6:35] Sergey Glukhov
Fixed in 5.1.8
[2 Mar 2006 7: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.