Bug #1125 mysqldump -X creates invalid xml
Submitted: 23 Aug 2003 5:32 Modified: 1 Sep 2003 1:21
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server: mysqldump Command-line Client Severity:S3 (Non-critical)
Version:4.1 OS:Linux (Linux)
Assigned to: Ramil Kalimullin CPU Architecture:Any

[23 Aug 2003 5:32] Georg Richter
Description:
Category: MySQL Commandline Client isn't correct, maybe an entry "MySQL Commandline 
tools" should be added :) 
 
Output from mysqldump -X looks a little bit strange :( 

How to repeat:
mysql> use test; 
Database changed 
mysql> create table a (a datetime); 
Query OK, 0 rows affected (0.00 sec) 
 
mysql> insert into a values (now()), (now() - interval 1 month); 
Query OK, 2 rows affected (0.10 sec) 
Records: 2  Duplicates: 0  Warnings: 0 
 
mysql> select * from a; 
+---------------------+ 
| a                   | 
+---------------------+ 
| 2003-08-23 14:20:59 | 
| 2003-07-23 14:20:59 | 
+---------------------+ 
2 rows in set (0.00 sec) 
 
From commandline: 
georg@vivaldi:~> mysqldump -uroot -X -n -t --skip-add-locks test 
 
<?xml version="1.0"?> 
<mysqldump> 
<database name="test"> 
    <table name="a"> 
    <row> 
    </row> 
    <row> 
    </row> 
,('2003-07-23 14:20:59')    </table> 
</database> 
</mysqldump>
[1 Sep 2003 1:21] Ramil Kalimullin
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