MySQL Forums
Forum List  »  Backup

Re: mysqldump --extended-inserts row on new line
Posted by: Lon B
Date: July 08, 2011 09:05AM

The extended format cannot be 100% properly parsed based on the comma or parenthesis, you would to count fields. The best solution, fix mysqldump to linebreak on output.

Very minor change:
On line 3506, you can see where the row-ending comma is output:
fputc(',',md_result_file);            /* Always row break */

Simply insert this line immediately after line 3506:
fputc('\n',md_result_file);     /* Lon Binder says wrap that line! */

re-compile and done.

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: mysqldump --extended-inserts row on new line
4669
July 08, 2011 09:05AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.