summaryrefslogtreecommitdiff
path: root/sql/table.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2021-01-30 20:05:38 +0300
committerAleksey Midenkov <midenok@gmail.com>2021-02-02 17:11:48 +0300
commit967fcd82734864a258fb477974423efb1157e05a (patch)
tree75ffcb640a953c2d1299396fd42487304bb9a65e /sql/table.h
parentddcae78e7f520429c7bf04a9132cae9ee0e7c768 (diff)
downloadmariadb-git-bb-10.6-midenok-MDEV-16417.tar.gz
MDEV-20865 check referenced fields existence and typebb-10.6-midenok-MDEV-16417
Introduced fk_prepare_create_table() which is called at mysql_prepare_create_table() that checks fields existence and fixes names case according to fields in ref-table or table definition (innodb-alter). Remove deprecated branch in fk_handle_alter().
Diffstat (limited to 'sql/table.h')
-rw-r--r--sql/table.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/table.h b/sql/table.h
index c689fb94128..4e207104974 100644
--- a/sql/table.h
+++ b/sql/table.h
@@ -732,6 +732,7 @@ struct TABLE_SHARE
KEY *key_info; /* data of keys in database */
FK_list foreign_keys;
FK_list referenced_keys;
+ Field *find_field_by_name(const LEX_CSTRING n) const;
bool fk_handle_create(THD *thd, FK_backup_storage &shares, FK_list *fk_add= NULL);
bool fk_check_consistency(THD *thd);
bool referenced_by_foreign_key() const