Bug #80006 | Incorrect/autonumbered foreign key, index and relationship name | ||
---|---|---|---|
Submitted: | 15 Jan 2016 13:56 | Modified: | 24 May 2018 15:29 |
Reporter: | M S | Email Updates: | |
Status: | QA review | Impact on me: | |
Category: | MySQL Workbench: Modeling | Severity: | S3 (Non-critical) |
Version: | 6.3.6 Build 511 CE 64-bit | OS: | Windows (7 Professional) |
Assigned to: | CPU Architecture: | Any | |
Tags: | fk name, foreign key name, relationship name |
[15 Jan 2016 13:56]
M S
[15 Jan 2016 19:19]
MySQL Verification Team
FK name
Attachment: fk_name.png (image/png, text), 120.58 KiB.
[15 Jan 2016 19:20]
MySQL Verification Team
I couldn't repeat please provide a model test case before to create the FK. Thanks.
[17 Jan 2016 16:42]
M S
FK Test Case
Attachment: fk-test-case.mwb (application/octet-stream, text), 8.76 KiB.
[17 Jan 2016 16:48]
M S
Thank you for your reply. I've just added a "test case" file to this report, so please take a look at it. Eventually I've found another insteresting thing: The issue appears only if the tables have AI (Auto-increment) fields, as you can see there are two relations in this model: a) USER and COUNTRY table, without using AI feature on ID columns -- the FK is named correctly: "fk_user_country". b) A and B table, using AI feature on ID columns -- the FK is named incorrectly (there is number 1 attached to name): "fk_b_a1". Hopefully is this not feature?
[17 Jan 2016 17:27]
MySQL Verification Team
Thank you for the feedback