mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
MDEV-20480 Obsolete internal parser for FK in InnoDB
Currently InnoDB uses internal parser for adding foreign keys. Remove internal parser and use data parsed by SQL parser (sql_yacc) for adding foreign keys. - create_table_info_t::create_foreign_keys() replacement for dict_create_foreign_constraints_low(); - Pass constraint name via Foreign_key object. Temporary until MDEV-20865: - Pass alter_info as part of create_info.
This commit is contained in:
@ -189,6 +189,7 @@ Key::Key(const Key &rhs, MEM_ROOT *mem_root)
|
||||
|
||||
Foreign_key::Foreign_key(const Foreign_key &rhs, MEM_ROOT *mem_root)
|
||||
:Key(rhs,mem_root),
|
||||
constraint_name(rhs.constraint_name),
|
||||
ref_db(rhs.ref_db),
|
||||
ref_table(rhs.ref_table),
|
||||
ref_columns(rhs.ref_columns,mem_root),
|
||||
|
Reference in New Issue
Block a user