Bug #57470 Adding foreign key referencing non-existent table causes segfault

Submitted: 15 Oct 2010 2:35 Modified: 11 Nov 2010 12:16
Reporter: Nicholas Sherlock Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Workbench: Modeling Severity:S3 (Non-critical)
Version:5.2.29 OS:Windows
Assigned to: Alexander Musienko CPU Architecture:Any

[15 Oct 2010 2:35] Nicholas Sherlock
Description:
In the modelling tool, if create a foreign key, manually specify the table that the key refers to, and that table does not actually exist, a segfault occurs.

How to repeat:
Create a new model.
Create a new diagram.
Add a new table to the diagram.
Go to the foreign keys tab.
Enter a name for a new foreign key.
In the dropdown box for "referenced table", choose "Specify manually..".
Enter the name of a table that does not exist, e.g. "awefaew.awefawef"
A segfault occurs.
[15 Oct 2010 5:51] Valeriy Kravchuk
Thank you for the bug report. Verified on Windows XP SP3.
[8 Nov 2010 14:34] Johannes Taxacher
fix confirmed in repository
[11 Nov 2010 12:16] Tony Bedford
An entry has been added to the 5.2.30 changelog:

When a foreign key was created manually, if the referenced table did not exist, then MySQL Workbench crashed.

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

Page generated in 0.051 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.