Bug #44675 | MySQL Workbench Rows not appear in EER diagram for table with > 20 columns | ||
---|---|---|---|
Submitted: | 5 May 2009 18:55 | Modified: | 10 Jun 2009 16:32 |
Reporter: | Rob Hodgkinson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Workbench | Severity: | S2 (Serious) |
Version: | 5.1.12 | OS: | MacOS (5.1.9 beta-5.2 alpha) |
Assigned to: | Alfredo Kojima | CPU Architecture: | Any |
Tags: | 20, CHECKED, columns, EER, table |
[5 May 2009 18:55]
Rob Hodgkinson
[5 May 2009 21:13]
Alfredo Kojima
Hi The ... is shown when there are too many columns in the table and Workbench switches the table to "summarized" view, making it display only primary keys and foreign keys. The number of columns that will trigger that switch can be changed in Preferences. We realize the current implementation is confusing, so that will be fixed to be clearer. However, in your case you get no columns displayed at all because you don't have any primary keys in your tables, which is usually not a good database design practice, regardless of any issues with Workbench.
[5 May 2009 21:34]
Rob Hodgkinson
Thanks for the informative reply Alfredo. The only funny observation is that this behaviour is not in the windows version (admittedly that was 5.0). A better behaviour would be to allow the user to 'resize' the table 'box', but only show the columns that fit, with the last row showing '...' (rather than the whole table appearing as '...'). Anyway, I understand what you are saying, but differ on the issue about a primary key. Not every table in a schema needs to have a primary key, some have key fields which are repeated (eg transaction files based on date, but for which there is no transaction number), so I certainly disagree with your closing remark that 'not having a primary key is not a good db design practice'. Thank you.../Regards Rob
[7 May 2009 14:42]
Valeriy Kravchuk
Verified just as described.
[29 May 2009 0:09]
Alfredo Kojima
This feature has been changed to the ability to manually resize the table, besides automatically limiting the number of columns to a user selectable value, by order of appearance, regardless of being key columns or not.
[3 Jun 2009 19:08]
Johannes Taxacher
feature changed as described by developer. new behaviour will be in 5.1.13
[10 Jun 2009 16:32]
Tony Bedford
An entry has been added to the 5.1.13 changelog: MySQL Workbench appeared not to display table rows in an EER diagram for tables that had more than 20 columns. MySQL Workbench now includes the ability to manually resize the table, besides automatically limiting the number of columns to a user selectable value, by order of appearance, regardless of being key columns or not.