Bug #6929 Sintax error in backup file created by MySQL Administrator
Submitted: 2 Dec 2004 2:06 Modified: 2 Dec 2004 11:22
Reporter: Hector Macias Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Administrator Severity:S3 (Non-critical)
Version:1.0.15 OS:Windows (Windows XP)
Assigned to: CPU Architecture:Any

[2 Dec 2004 2:06] Hector Macias
Description:
The file created by the backup option with full insert statements appends and extra ',' after the last ')' and before the last ';' of a table dumpping.

so instead of having something like:

INSERT INTO `invoice_details` (`transaction_id`,`product_id`,`quantity`,`descount_rate`,`tax_rate`,`subtotal`) VALUES 
 (17641,924,1,0,0,60),
 (17642,923,3,0,0,900),
 (17642,924,3,0,0,180),
 (17643,970,1,0,0,15),
 (17644,692,1,25,0,8),
 (17644,772,1,25,0,8);          <--------- Here is ok

we have:

INSERT INTO `invoice_details` (`transaction_id`,`product_id`,`quantity`,`descount_rate`,`tax_rate`,`subtotal`) VALUES 
 (17641,924,1,0,0,60),
 (17642,923,3,0,0,900),
 (17642,924,3,0,0,180),
 (17643,970,1,0,0,15),
 (17644,692,1,25,0,8),
 (17644,772,1,25,0,8),;       <--------- Check the extra ',' at the end

How to repeat:
Create a bakup with extended inserts. Check the file sintax error or try to restore the backup file.
[2 Dec 2004 11:22] Michael G. Zinner
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