diff options
author | Monty <monty@mariadb.org> | 2019-12-30 13:34:28 +0200 |
---|---|---|
committer | Monty <monty@mariadb.org> | 2020-03-24 20:47:41 +0200 |
commit | bff79492c5f6c9669b9dc9bf2cf0483b3b001da7 (patch) | |
tree | 7d13874ae2bf8a8c2caba079f1010d401d65dcaf /sql/sql_table.h | |
parent | 5f5c63e0fe6eac590549bdb76204a07cb2fe2aa1 (diff) | |
download | mariadb-git-bff79492c5f6c9669b9dc9bf2cf0483b3b001da7.tar.gz |
Added IF EXISTS to RENAME TABLE and ALTER TABLE
Diffstat (limited to 'sql/sql_table.h')
-rw-r--r-- | sql/sql_table.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sql/sql_table.h b/sql/sql_table.h index ae05fe05c5d..debd55e7ab9 100644 --- a/sql/sql_table.h +++ b/sql/sql_table.h @@ -217,11 +217,13 @@ bool mysql_prepare_alter_table(THD *thd, TABLE *table, Alter_table_ctx *alter_ctx); bool mysql_trans_prepare_alter_copy_data(THD *thd); bool mysql_trans_commit_alter_copy_data(THD *thd); -bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db, const LEX_CSTRING *new_name, +bool mysql_alter_table(THD *thd, const LEX_CSTRING *new_db, + const LEX_CSTRING *new_name, HA_CREATE_INFO *create_info, TABLE_LIST *table_list, Alter_info *alter_info, - uint order_num, ORDER *order, bool ignore); + uint order_num, ORDER *order, bool ignore, + bool if_exists); bool mysql_compare_tables(TABLE *table, Alter_info *alter_info, HA_CREATE_INFO *create_info, @@ -244,7 +246,7 @@ bool mysql_rm_table(THD *thd,TABLE_LIST *tables, bool if_exists, int mysql_rm_table_no_locks(THD *thd, TABLE_LIST *tables, bool if_exists, bool drop_temporary, bool drop_view, bool drop_sequence, - bool log_query, bool dont_free_locks); + bool dont_log_query, bool dont_free_locks); bool log_drop_table(THD *thd, const LEX_CSTRING *db_name, const LEX_CSTRING *table_name, bool temporary_table); bool quick_rm_table(THD *thd, handlerton *base, const LEX_CSTRING *db, |