Bug #101981 | Reverse Engineer/Synchronize fails (silently) for external generated columns | ||
---|---|---|---|
Submitted: | 12 Dec 2020 15:00 | Modified: | 12 Dec 2020 21:40 |
Reporter: | Jan Hieronymus | Email Updates: | |
Status: | Unsupported | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S1 (Critical) |
Version: | 8.0.22 | OS: | Windows (10 v2004) |
Assigned to: | CPU Architecture: | x86 |
[12 Dec 2020 15:00]
Jan Hieronymus
[12 Dec 2020 21:40]
MySQL Verification Team
Thank you for the bug report. The server MariaDB isn't supported by this tool which is for MySQL Oracle server.
[18 Mar 2023 14:25]
S Hirst
Similar situation using to reported bug but on MySQL: Data Workbench v.8.0.31 build 2235049 CE (64 bits) MySQL Server v.8.0.31 (MySQL Community Server-GPL) Windows 10 Pro v.22H2 (OS build: 19045.2728) ----------------------------------- DROP DATABASE IF EXISTS travel; CREATE DATABASE travel; USE travel; CREATE TABLE manufacturers ( manufacturer_id INT UNSIGNED NOT NULL, manufacturer VARCHAR(50) NOT NULL, create_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (manufacturer_id) ); CREATE TABLE airplanes ( plane_id INT UNSIGNED NOT NULL, plane VARCHAR(50) NOT NULL, manufacturer_id INT UNSIGNED NOT NULL, engine_type VARCHAR(50) NOT NULL, engine_count TINYINT NOT NULL, max_weight MEDIUMINT UNSIGNED NOT NULL, wingspan DECIMAL(5,2) NOT NULL, plane_length DECIMAL(5,2) NOT NULL, parking_area INT GENERATED ALWAYS AS ((wingspan * plane_length)) STORED, icao_code CHAR(4) NOT NULL, create_date TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, last_update TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (plane_id), CONSTRAINT fk_manufacturer_id FOREIGN KEY (manufacturer_id) REFERENCES manufacturers (manufacturer_id) ); ---------------------------- Data Workbench: Reverse Engineer Database ERROR: (3, 21) "GENERATED" is not valid at this position, expecting ')' [Note: believe it is on column 'parking area' in table 'airplanes'.] [Note: attempted to change INT to INT(11) for 'parking area' and received following warning: 1 warning(s): 1681 Integer display width is deprecated and will be removed in a future release. and table is created with just INT.]