| Bug #16234 | XML: Crash if ExtractValue() | ||
|---|---|---|---|
| Submitted: | 5 Jan 2006 20:36 | Modified: | 17 Feb 2006 13:51 |
| Reporter: | Peter Gulutzan | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: XML functions | Severity: | S3 (Non-critical) |
| Version: | 5.1.5-alpha-debug | OS: | Linux (SUSE 10.0) |
| Assigned to: | Alexander Barkov | CPU Architecture: | Any |
[5 Jan 2006 20:55]
MySQL Verification Team
miguel@hegel:~/dbs/5.1> bin/mysql -uroot test
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2 to server version: 5.1.5-alpha-debug
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> set @xml =
-> ' <order>
'> <clerk>lesser wombat</clerk>
'> </order>';
Query OK, 0 rows affected (0.00 sec)
mysql> select extractvalue(@xml,'order/clerk');
ERROR 2013 (HY000): Lost connection to MySQL server during query
mysql>
[18 Jan 2006 9:40]
Alexander Barkov
Peter, I guess it should it return the same result with: select extractvalue(@xml,'/order/clerk'); right?
[10 Feb 2006 9:31]
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/2430
[17 Feb 2006 12:57]
Alexander Barkov
Pushed into 5.1.7
[17 Feb 2006 13:51]
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 in 5.1.7 changelog; closed.

Description: I have a string with an unexpected format. I use it with ExtractValue(). Crash. How to repeat: mysql> set @xml = -> ' <order> '> <clerk>lesser wombat</clerk> '> </order>'; Query OK, 0 rows affected (0.00 sec) mysql> select extractvalue(@xml,'order/clerk'); ERROR 2013 (HY000): Lost connection to MySQL server during query