Bug #55007 | Data Dump should add line break between VALUES lists for INSERT statements | ||
---|---|---|---|
Submitted: | 5 Jul 2010 17:40 | Modified: | 9 Jul 2010 6:59 |
Reporter: | d m | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Command-line Clients | Severity: | S4 (Feature request) |
Version: | OS: | Windows (XP Pro SP3) | |
Assigned to: | CPU Architecture: | Any | |
Tags: | Data Dump, INSERT sql, mysqldump |
[5 Jul 2010 17:40]
d m
[6 Jul 2010 0:20]
MySQL Verification Team
Sounds like a feature request.
[6 Jul 2010 5:38]
Valeriy Kravchuk
It may be a nice option to have, but as mysqldump is used the only easy way to implement this request is to NOT use -e option of it (http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html#option_mysqldump_extended-insert).
[6 Jul 2010 10:27]
d m
Thanks for your comments, but since you are trying to replace MySQL Administrator this seems like a regression. When performing the same operation from MySQL Administrator it places one 'row' of Insert VALUES on a single line in the dump. Perhaps it's a windows only thing, requiring CR & LF to return. I'll fire up a Linux vm later to check there.
[6 Jul 2010 13:14]
Alfredo Kojima
As it seems that -e is passed by default to mysqldump, we'll add an option to turn that off (--skip-extended-insert) in the options UI. But there should be an option to dump a row per line in mysqldump, or to simply always do that when -e is enabled.
[6 Jul 2010 13:28]
Valeriy Kravchuk
mysqldump feature request based on last comment makes sense.
[6 Jul 2010 13:29]
Alfredo Kojima
Workbench has been fixed so that unchecking the "extended-insert" option will output an INSERT statement per row/line
[6 Jul 2010 13:39]
d m
[quote]or to simply always do that when -e is enabled.[/quote] That would be the ideal! Thanks Alfredo. Regards, David Marten
[9 Jul 2010 6:59]
d m
[quote]mysqldump feature request based on last comment makes sense.[/quote] I have added to already existing feature request http://bugs.mysql.com/bug.php?id=31343 It would be good to push this request because having to turn off extended-insert functionality seems like a poor workaround (performance etc), and especially since this bug/request originated in 2004!
[22 Mar 2013 23:40]
Jamie Jackson
Similar: Bug #4328, Bug #65465