[MDEV-21311] Converge Foreign_key and supplemental generated Key together Created: 2019-12-13  Updated: 2024-01-31  Resolved: 2020-08-07

Status: Closed
Project: MariaDB Server
Component/s: Server
Fix Version/s: N/A

Type: Task Priority: Critical
Reporter: Aleksey Midenkov Assignee: Aleksey Midenkov
Resolution: Duplicate Votes: 0
Labels: refactoring

Issue Links:
Blocks
blocks MDEV-21051 Store and read foreign key info into/... Closed
Duplicate
duplicates MDEV-20865 Store foreign key info in TABLE_SHARE In Progress

 Description   

mysql_prepare_create_table() does data validation and such utilities as automatic name generation. But it does that only for indexes and ignores Foreign_key objects. Now as Foreign_key data needs to be stored in FRM files as well this processing must be done for them like for any other Key objects.

Replace Key::FOREIGN_KEY type with Key::foreign flag of type Key::MULTIPLE and Key::generated set to true. Construct one object with Key::foreign == true instead of two objects of type Key::FOREIGN_KEY and Key::MULTIPLE.



 Comments   
Comment by Aleksey Midenkov [ 2020-08-07 ]

Merged into MDEV-20865

Generated at Thu Feb 08 09:06:10 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.