Bug #6497 | Formatting of SQL Dump file | ||
---|---|---|---|
Submitted: | 8 Nov 2004 13:12 | Modified: | 16 Nov 2004 9:36 |
Reporter: | Robbie Mappin | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Administrator | Severity: | S3 (Non-critical) |
Version: | 1.0.14 | OS: | Windows (WinXP) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
[8 Nov 2004 13:12]
Robbie Mappin
[12 Nov 2004 13:52]
Mike Lischke
Thank you Robbie. We are very glad to see the increasing number of satisfied users. The only thing I like to mention, though, is that in the future please split reports like this into two. See, there is the dump output problem and the bug. It might well be different people work on that. Thank you.
[12 Nov 2004 14:53]
Robbie Mappin
Hi Mike Sorry for the dual-submit. Didn't realise you actually take this as a proper bug list report!!! That used to Microsoft 'into the ether' submit!!! I don't think the little save project bug is a major issue, but the formatting of the SQL dump is something very important (well to me anyway). Just to add to this, noticed that if I have the 'Add DROP TABLE Statements' checkbox selected then I do get a better output as this option includes extra line breaks, which at least splits up the tables/insert 'chunks'. If you want me to email you an example of the layout that I'm thinking of then please let me know. Regards Robbie
[15 Nov 2004 14:11]
Mike Lischke
The bug is fixed, but writing out the tables in their creation order is currently not possible. Wie need a little but important change in the UI for this. Yet there are more important tasks waiting currently. Mike
[15 Nov 2004 14:17]
Robbie Mappin
Thanks Mike Look forward to getting the update.
[15 Nov 2004 15:34]
Mike Lischke
Could you please tell a bit more about what comments you expect between tables?
[15 Nov 2004 17:08]
Robbie Mappin
Hi Mike The kind of format I was meaning is as follows: # -------------------------------------------------- # Table structure for table 'CART' # -------------------------------------------------- DROP TABLE IF EXISTS `CART`; CREATE TABLE `CART` ( `CARTID` INT NOT NULL AUTO_INCREMENT, `WEBUSERID` INT DEFAULT 0, `ACCOUNTID` INT DEFAULT 0, `YOURREF` VARCHAR(15), INDEX `indxCARTID` (`CARTID`), INDEX `indxWEBUSERID` (`WEBUSERID`) ); # -------------------------------------------------- # Dumping data for table 'CART' # -------------------------------------------------- LOCK TABLES `CART` WRITE; INSERT INTO `CART` VALUES ('1','2','3','4'); INSERT INTO `CART` VALUES ('A','B','C','D'); UNLOCK TABLES; # -------------------------------------------------- # Table structure for table 'COLOURS' # -------------------------------------------------- DROP TABLE IF EXISTS `COLOURS`; CREATE TABLE `COLOURS` ( `COLOURID` VARCHAR(30) NOT NULL, `COLOURNAME` VARCHAR(50), `LANGID` VARCHAR(30), `COMMENT` VARCHAR(255), INDEX `indxCOLOURID` (`COLOURID`) ); # -------------------------------------------------- # Dumping data for table 'COLOURS' # -------------------------------------------------- LOCK TABLES `COLOURS` WRITE; INSERT INTO `COLOURS` VALUES ('BLACK','Black','GB',''); INSERT INTO `COLOURS` VALUES ('SILVER','Silver','GB',''); UNLOCK TABLES; The real biggie is being able to have the tables listed in the order that I want, ie either by giving me the option to set the order before a backup or by creation date, but you have already explained that this is an enhancement for future consideration. With regard to the formatting, the comment lines just act as a visual delimiter to allow the viewer to differenciate between tables and data dumps. Hopefully you will agree that the above is a more readable format than a straight dump. Also notice that each row has it's own insert line as well, but I should probably get used to your multiple entries per line method as it is probably more efficient. Thanks for your time. Rgds Robbie
[16 Nov 2004 9:36]
Mike Lischke
Robbie, thank you for your example. I'm going to close this bug entry as the actual bug is fixed now. For the formatting I'm afraid this won't happen in the near future. We add a Todo list entry for it, but more than adding an empty line here and there is not yet planned. There are simply too many other things to do. Mike
[25 Nov 2004 10:20]
Robbie Mappin
Hi Mike Thanks for the feedback. No probs re the formatting request - it is more of an enhancement than a bug/critical requirement. As it is now it does the job. Keep up the good work. Rgds Robbie