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_class.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_class.h')
-rw-r--r-- | sql/sql_class.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index 1979e85c31c..57e464c4d67 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -705,6 +705,7 @@ public: LEX_CSTRING constraint_name; LEX_CSTRING ref_db; LEX_CSTRING ref_table; + TABLE_LIST *ref_table_list; List<Key_part_spec> ref_columns; st_fk_options fk_options; Foreign_key(const LEX_CSTRING *name_arg, @@ -744,7 +745,7 @@ public: return !foreign; } void init(const LEX_CSTRING& _ref_db, const LEX_CSTRING& _ref_table, - st_fk_options _fk_options); + TABLE_LIST *_ref_table_list, st_fk_options _fk_options); Foreign_key(const Foreign_key &rhs, MEM_ROOT *mem_root); /** Used to make a clone of this object for ALTER/CREATE TABLE @@ -1658,8 +1659,8 @@ public: class Server_side_cursor; /* - Struct to catch changes in column metadata that is sent to client. - in the "result set metadata". Used to support + Struct to catch changes in column metadata that is sent to client. + in the "result set metadata". Used to support MARIADB_CLIENT_CACHE_METADATA. */ struct send_column_info_state @@ -1672,7 +1673,7 @@ struct send_column_info_state /* Column info can only be changed by PreparedStatement::reprepare() - + There is a class of "weird" prepared statements like SELECT ? or SELECT @a that are not immutable, and depend on input parameters or user variables */ @@ -1779,7 +1780,7 @@ public: LEX_CSTRING db; send_column_info_state column_info_state; - + /* This is set to 1 of last call to send_result_to_client() was ok */ my_bool query_cache_is_applicable; |