Bug #19525 Export as SQL Create Script fails
Submitted: 4 May 2006 1:46 Modified: 3 Sep 2006 4:58
Reporter: Tiago Zanon Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S2 (Serious)
Version:1.0.6beta OS:Linux (Linux - Ubuntu 5.10)
Assigned to: CPU Architecture:Any

[4 May 2006 1:46] Tiago Zanon
Description:
After modeling a simple 2-table database, I tried to export as a SQL Create script. The program showed this error message:
"Error generating SQL script. See GRT console for more information."

The GRT console had this message: "Invalid function calling Workbench.generateSqlScript".

How to repeat:
Export any model as a SQL Create script.

Suggested fix:
The file "mysql-workbench/share/mysql-gui/workbench/lua/Workbench.lua" seems to be wrong. The function called is "generateSqlScript", but the file contains the function "generateSqlCreateScript".

Changing the name of the function to "generateSqlScript" (must be done in every occurance of generateSqlCreateScript) solved the problem.
[5 May 2006 0:16] MySQL Verification Team
Thank you for the bug report.
[5 May 2006 0:27] John Yodsnukis
This has been corrected already in svn, but instead of changing the function names in the lua modules, the correct, existing function name was changed in the the menu.
[5 May 2006 1:31] Tiago Zanon
Thanks!
[3 Sep 2006 4:58] Alfredo Kojima
Thank you for your bug report. This issue has already been fixed in the latest released version of that product, which you can download at

  http://www.mysql.com/downloads/