Bug #110442 Import SQL Script on ERR Diagram Crashs Workbench
| Submitted: | 20 Mar 2023 20:23 | Modified: | 24 Mar 2023 10:39 |
|---|---|---|---|
| Reporter: | Natã Pereira | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Workbench: Modeling | Severity: | S2 (Serious) |
| Version: | 8.0.32 | OS: | Windows (Microsoft Windows 11) |
| Assigned to: | CPU Architecture: | Any | |
| Tags: | WBBugReporter | ||
[24 Mar 2023 10:39]
MySQL Verification Team
Hello Natã Pereira, Thank you for the bug report. I tried to reproduce your issue on windows 10 with workbench 8.0.32 using table provided but I am not seeing any issues at my end. Regards, Ashwini Patil
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 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.
Description: When importing a SQL Script to create tables in ERR Diagram, the app crashes if there are any 'CHECK' statements in the SQL Script. I was trying to import a script that had the following table creation: CREATE TABLE customer ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, contract_type ENUM('msp', 'reseller', 'partner') NOT NULL, tier TINYINT NOT NULL CHECK (tier >= 1 AND tier <= 4), type ENUM('enterprise', 'comercial', 'internal') NOT NULL ); Every time I tried importing it, Workbench would just crash. By removing the CHECK in the 'tier' column, it worked: CREATE TABLE customer ( id INT AUTO_INCREMENT PRIMARY KEY, name VARCHAR(255) NOT NULL, contract_type ENUM('msp', 'reseller', 'partner') NOT NULL, tier TINYINT NOT NULL CHECK (tier >= 1 AND tier <= 4), type ENUM('enterprise', 'comercial', 'internal') NOT NULL ); How to repeat: Create a new model and try to import a SQL Script for reverse engineer, with the content in the description above and the crash will happen.