summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2019-11-20 13:18:31 +0300
committerAleksey Midenkov <midenok@gmail.com>2019-11-20 13:18:31 +0300
commit5130f5206c150ba1e8a723aae63884ff64408012 (patch)
tree43304b46565bdc6dfbdef24b5f2afcab10e66a37 /sql/sql_class.cc
parent20b474be5b75929727c693f91448f12257d1b6d4 (diff)
downloadmariadb-git-5130f5206c150ba1e8a723aae63884ff64408012.tar.gz
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.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index 79fd8c173bc..d75cac56bff 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -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),