forums › forums › SQLyog › SQLyog: Bugs / Feature Requests › Additional Spaces On Restore Of Triggers, Procedures And Functions
- This topic is empty.
-
AuthorPosts
-
-
October 16, 2007 at 11:36 am #10591
hiero
MemberHi,
When restoring a database using the “restore from SQL dump…” functionality, an additional leading space is added on every line starting with the second line of triggers, procedures and functions. This prevents a successful comparison of the database structure to other versions of the database.
I'm using SQLyog Community version 6.1 Beta 4.
-
October 16, 2007 at 1:15 pm #25152
peterlaursen
ParticipantI doubt this happens when RESTORING – rather when EXPORTING.
Could you open the dump in an editor and check this, please?
How was the dump created? SQLyog export, SQLyog scheduled backup or by some other program?
This is probably not important but you should always tell the MySQL version!
And it would be a little help if you pasted in a small example!
-
October 16, 2007 at 1:23 pm #25153
peterlaursen
Participantwe just did a brief test.
We cannot reproduce (MySQL 5.0.41) .. or we do not understand what you are telling. So please detail!
(screenshots are always good for illustration of such issues)
-
October 16, 2007 at 1:59 pm #25154
hiero
MemberI have verified that the export with mysqldump is ok (5.0.37). For your reference, I have attached two screenshots, one with the code sequence generated by mysqldump and one with the code after import:
[attachment=763:SQL_Impo…ysqldump.gif]
[attachment=764:SQL_Import_done.gif]
-
October 16, 2007 at 3:14 pm #25155
hiero
MemberIn the meantime I realized that the export was from a utf8 encoded database using INNODB-engine. Maybe it's related to the use of utf8, because the file being generated by mysqldump is utf8 encoded as well.
-
October 17, 2007 at 9:42 am #25156
Mahesh
MemberThanks for the report,
but I am not able to see the leading space in every line after the second line from functions , etc… ?
Also, Please provide SQL dump file that you used for restoring.
-
October 17, 2007 at 11:46 am #25157
hiero
MemberHave a look for the region below the “begin”. In the first screenshot, the text begins in position 5 and in the other screenshot in position 6. It's most obvious for the line starting with “end”, which only starts in the second position in the second screenshot.
For your reference I have attached a short SQL script which demonstrates the bug.
[attachment=765:function.zip]
Regards,
Frank
-
October 18, 2007 at 5:00 am #25158
Mahesh
MemberIssue Confirmed!
We have fixed the issue in our source tree, soon we are releasing the latest version with this fix.
Thanks again.
-
October 19, 2007 at 4:23 am #25159
Mahesh
Member6.1 RC has been released with this fix .
-
-
AuthorPosts
- You must be logged in to reply to this topic.