Bug #45343 Deleting a table from the diagram crashes Workbench

Submitted: 5 Jun 2009 5:07 Modified: 9 Jun 2009 12:19
Reporter: Lachlan Mulcahy Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S2 (Serious)
Version:5.1.12 rev 4000 OS:MacOS (10.5.6)
Assigned to: CPU Architecture:Any
Tags: workbench crash

[5 Jun 2009 5:07] Lachlan Mulcahy
Description:
Deleting a table from the diagram in MySQL Workbench that you have just Reverse Engineered causes a Workbench to crash.

How to repeat:
Create a simple sample DB in your MySQL server:

eg.

CREATE DATABASE wbcrash;
USE wbcrash;
CREATE TABLE `test345` (
  `a` int(11) default NULL,
  `b` char(20) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
CREATE TABLE `test345` (
  `a` int(11) default NULL,
  `b` char(20) default NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;

Start Workbench and setup a connection to your MySQL Server.

Select Database->Reverse Engineer...
Point to your wbcrash DB.
Select to import all objects.
Complete the wizard.

Observer your two tables created as an EER Diagram.
Right click either of the tables and select to "Delete table"

When prompted if you want to Keep the corrosponding database objects, select "Keep" or "Delete" (it doesnt seem to matter which.)

Observe the crash.

Suggested fix:
Unknown, but attaching the Stack Dump from Mac OS.
[5 Jun 2009 17:21] Michael Grimes
I've found a work around for the crash.  If you go into "Preferences" and choose tab "Model", under the first line "When deleting physical model figures in diagram", then select "Keep database object", or the other choice, but don't select "Ask". Then I can delete without a crash.

hth,
~mg
[9 Jun 2009 12:19] Susanne Ebrecht
This is a duplicate of bug #45204

Portions of this website are copyright © 2001, 2002 The PHP Group

Page generated in 0.040 sec. using MySQL 8.4.7-u6-cloud

Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.