Bug #39556 Copy as SQL to Clipboard gives an error message for connections in EER
Submitted: 20 Sep 2008 11:59 Modified: 15 Dec 2009 17:12
Reporter: Jacob Engstrand Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Severity:S3 (Non-critical)
Version:5.0.25 OS:Windows (XP)
Assigned to: Alfredo Kojima CPU Architecture:Any

[20 Sep 2008 11:59] Jacob Engstrand
Description:
Selecting a connection in an EER Diagram and selecting "Copy as SQL to Clipboard" results in a cryptic error message.

How to repeat:
1. Create an EER diagram with two tables with a connection between them.
2. Select only the connection.
3. Select menu item Plugins -> Copy SQL to Clipboard.

Result: Cryptic error message.
Expected result: A better message. Or the menu item should be disabled.

Suggested fix:
A message explaining that user cannot export meaningful SQL from only a foreign key. Or the menu item should be disabled in this case.
[10 Aug 2009 14:12] Alfredo Kojima
Fixed Plugin checking code to properly check if plugin menu entry should be enabled for this case.
[11 Dec 2009 15:15] Johannes Taxacher
items properly disabled for these items.
fix will be in 5.2.11
[15 Dec 2009 17:12] Tony Bedford
An entry has been added to the 5.2.11 changelog:

If a relationship link was selected in the EER Diagram view, and the menu item Plugins, Objects, Copy SQL to Clipboard was selected, an error was generated.

Note that in version 5.2.11 this menu option is correctly disabled for these objects.