diff options
author | Nikita Malyavin <nikitamalyavin@gmail.com> | 2021-03-03 00:16:27 +0300 |
---|---|---|
committer | Nikita Malyavin <nikitamalyavin@gmail.com> | 2021-03-10 17:46:19 +0300 |
commit | e0c940aa565c6d8527f33162061d76b156eb2c6e (patch) | |
tree | 562b80391aedae12171954e21058a72c6e83ed3d /sql/sql_lex.h | |
parent | dcf0333f7fea1d35e0e9f68fe26a0259a2890b35 (diff) | |
download | mariadb-git-fk_in_progress.tar.gz |
Add referenced table to prelocking list during CREATE TABLE with FKfk_in_progress
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index d16af3fb51a..aedc7c5a66a 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -4709,6 +4709,7 @@ public: bool add_column_foreign_key(const LEX_CSTRING &name, const LEX_CSTRING &constraint_name, DDL_options ddl_options); + bool init_last_foreign_key(Table_ident *ref_table_name); }; @@ -5046,6 +5047,12 @@ bool sp_create_assignment_instr(THD *thd, bool no_lookahead, bool need_set_keyword= true); void mark_or_conds_to_avoid_pushdown(Item *cond); +TABLE_LIST *find_table_in_list(TABLE_LIST *table, + TABLE_LIST *TABLE_LIST::*link, + const LEX_CSTRING *db_name, + const LEX_CSTRING *table_name); +int add_foreign_key_to_list(LEX *lex, LEX_CSTRING *name, Table_ident *table_name, + DDL_options ddl_options); #endif /* MYSQL_SERVER */ #endif /* SQL_LEX_INCLUDED */ |