[MDEV-12094] Foreign key meta-data for MyISAM Created: 2017-02-20 Updated: 2023-10-07 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Fix Version/s: | None |
| Type: | Task | Priority: | Minor |
| Reporter: | Olaf van der Spek | Assignee: | Unassigned |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
Foreign keys aren't supported by MyISAM (AFAIK) and the data is discarded after create table. |
| Comments |
| Comment by Sergei Golubchik [ 2017-05-25 ] | ||||||||||||||||||||
|
Won't it be confusing to show foreign keys that aren't enforced? I suppose SHOW CREATE TABLE can show them just as it shows unsupported table attributes — inside a comment. But then GUI tools won't be able to see them anyway. | ||||||||||||||||||||
| Comment by Olaf van der Spek [ 2017-05-26 ] | ||||||||||||||||||||
|
Maybe Perhaps per-field meta-data would be a better way to store this. | ||||||||||||||||||||
| Comment by Sergei Golubchik [ 2017-05-26 ] | ||||||||||||||||||||
|
I don't see any possible fix that could be done just on MariaDB side, without any changes to phpMyAdmin. And if phpMyAdmin has to be modified, then we do the fix with showing foreign keys in a comment. It'll be consistent with:
Note, how unsupported attributes are printed inside a comment when IGNORE_BAD_TABLE_OPTIONS is not set. |