Bug #18221 Delete Layers deletes Tables from Layers dialog
Submitted: 14 Mar 2006 11:24 Modified: 26 Apr 2006 22:38
Reporter: Dan Kelly Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench Preview Severity:S3 (Non-critical)
Version:1.0.5 beta OS:Windows (Windows XP SP2)
Assigned to: Alfredo Kojima CPU Architecture:Any

[14 Mar 2006 11:24] Dan Kelly
Description:
When a layer is deleted from the main workbench window (using Ctrl-Delete) then tables associated with that Layer are deleted from the Layers Dialog.

Re-creating a layer over the missing tables creates an empty layer - signified by bullet rather than triangle next to the Layer name.

How to repeat:
Create 2/3 tables on a workbench.  Tables will be listed in the "root" of the Layers dialog - not associated with a layer.

Drag a layer over the tables.  Tables are replace by a "New Layer" with triangle "twist" next to it.  Click the twist to show the original tables in the layer.

Select the layer in the main window by clicking on the title bar.  Use Ctrl-Delete to delete the layer - choose "Delete" when prompted.

Layer and associated tables will disappear from the Layer dialog.

Create a new layer over the same tables.  The created "New Layer" will have a bullet rather than a "twist" next to its name.

Suggested fix:
Restore the tables contained in a layer to the "root" of the Layers dialog when their layer is removed
[14 Mar 2006 11:28] Dan Kelly
In addition to previous submission - When recreating the Layer the missing tables are not included in the New Layer - they cannot be selected by any new Layer!
[6 Apr 2006 16:15] MySQL Verification Team
Thank you for the bug report.
[26 Apr 2006 22:38] Alfredo Kojima
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html