Bug #101484 Foreign keys are not shown in their tab under a table info.
Submitted: 5 Nov 2020 19:37 Modified: 26 Oct 2021 13:13
Reporter: Filippo Landi Email Updates:
Status: Duplicate Impact on me:
None 
Category:MySQL Workbench Severity:S4 (Feature request)
Version:8.0.22 OS:Linux (Fedora release 33 Thirty Three x86_64)
Assigned to: CPU Architecture:x86
Tags: WBBugReporter

[5 Nov 2020 19:37] Filippo Landi
Description:
----[For better reports, please attach the log file after submitting. You can find it in /home/cippo95/.mysql/workbench/log/wb.log]
Foreign keys are not shown in their tab under a table info.
Trying to refresh in that tab gives: "Unhandled exception:invalid column constraint_name for resultset".

How to repeat:
Foreign keys are not shown in their tab under a table info.
Trying to refresh in that tab gives: "Unhandled exception:invalid column constraint_name for resultset".

Suggested fix:
It should display foreign keys as desired.
[5 Nov 2020 19:38] Filippo Landi
wb.log file

Attachment: wb.log (text/x-log), 6.61 KiB.

[24 Dec 2020 7:46] Peter Stiles
This is happening for us too.

We have a MySql 8.0.22 database, running in Docker (for development) and natively on linux (for test/production).

We experienced this problem when using Workbench 8.0.19 and were hoping the upgrade to workbench 8.0.22 would address the issue but are sad that it has not.

Looking on the "DDL" tab it clearly shows FK constraints against the table, but as per original poster there is simply a blank "Foreign Keys" tab.
[16 May 2021 7:10] Preksha Patel
This is happening to me also. I am using 8.0.24.0.
[15 Jun 2021 7:57] Venkata Rachur
Same issue with 8.0.25
[11 Aug 2021 17:44] Robin Chappatte
Same issue with v. 8.0.26 build 972499 on Ubuntu 20.04 (64 bits)
[26 Oct 2021 13:13] MySQL Verification Team
Hello Filippo Landi,

Thank you for the bug report.
Imho this is duplicate of Bug #102496, please see Bug #102496.

Regards,
Ashwini Patil
[27 Jan 2022 18:42] sairah naveed
I am using MYSQL workbench version 8.0.28 I am facing the same issue 

"Looking on the "DDL" tab it clearly shows FK constraints against the table, but as per the original poster there is simply a blank "Foreign Keys" tab"

please suggest the solution
[18 Mar 2022 12:00] Xiaolu Wang
The same issue here. I am also using MYSQL workbench version 8.0.28
[29 Oct 2022 21:21] David Gilman
Still happening in 8.0.31 - blank Foreign keys page, DDL shows multiple foreign key constraints, and error when you hit refresh. Log of error is similar to that in "duplicate" bug.
[16 Feb 2023 18:07] David Gilman
Still happening in 8.0.32
[18 Jul 2023 23:54] Philip Hachey
I am surprised this is something that is still not fixed many versions and nearly two years later. This is an issue for me in Workbench in 8.0.34 running on Linux Mint 21.1 (based on Ubuntu 22.04). The server is 8.0.33 (Homebrew) running on macos13.3.
[19 Jul 2023 0:00] Philip Hachey
Note that the foreign keys are displayed fine in Workbench 8.0.34 when the server being viewed is 5.7.21 (Homebrew) but not when it is 8.0.33 (Homebrew).
[26 Jul 2023 14:24] Kevin Miller
I used a CASE tool to generate the DDL, so I assume the CASE tool is not following the nameing guidelines for FK. Where can I find the naming guidelines?