[BUG] wrong position of ';' in SQL of exported tables

[expired user #1113]'s profile image [expired user #1113] posted 17 years ago in General Permalink
First, let me thank you for the work on this program (and mysqlfront 2.5 which I've been using for a long time)!

Now, the bug.
When exporting some tables to SQL you get something like:
/*!40000 ALTER TABLE myTable DISABLE KEYS;*/

and it should be
/*!40000 ALTER TABLE myTable DISABLE KEYS */;


I only noticed it when MySQL complained while trying to import the data via the command line executable.
mysqldump uses the second format also (at least on my 4.1.x version).
ansgar's profile image ansgar posted 17 years ago Permalink
Fixed!

See http://svn.sourceforge.net/viewvc/heidisql/exportsql.pas?view=log
[expired user #1113]'s profile image [expired user #1113] posted 17 years ago Permalink
Excelent!
Thank you!
[expired user #1125]'s profile image [expired user #1125] posted 17 years ago Permalink
It's not we who are wrong, it's MySQL.
ansgar's profile image ansgar posted 17 years ago Permalink
Yeah, rosenfield just made the whole thing more server-independent by adding a new option "Standard ANSI SQL" to the dropdown "Target compatibility".

If you select this new entry, the semicolons will be placed within the comment - which is the more correct syntax, but not (yet) supported by the mysql-servers.

If you choose one of the MySQL-options here, the semicolons will be placed outside the comment - which is needed if you want to re-import the file into another mysql-server.
[expired user #1132]'s profile image [expired user #1132] posted 17 years ago Permalink
Any idea when the new version will be available for download with this fix? :)
ansgar's profile image ansgar posted 17 years ago Permalink
haha, I waited for this question :)

Sorry, no release plan yet. But you are free to download the sources and compile it for your needs.

Please login to leave a reply, or register at first.