24#ifndef SQL_PARTITION_ADMIN_H
25#define SQL_PARTITION_ADMIN_H
41 using Sql_cmd_common_alter_table::Sql_cmd_common_alter_table;
60 {
nullptr, 0},
false) {}
77 using Sql_cmd_check_table::Sql_cmd_check_table;
93 using Sql_cmd_optimize_table::Sql_cmd_optimize_table;
108 using Sql_cmd_repair_table::Sql_cmd_repair_table;
Data describing the table being created by CREATE TABLE or altered by ALTER TABLE.
Definition: sql_alter.h:205
Class that represents the ALTER TABLE t1 ANALYZE PARTITION p statement.
Definition: sql_partition_admin.h:53
~Sql_cmd_alter_table_analyze_partition() override=default
Sql_cmd_alter_table_analyze_partition(THD *thd, Alter_info *alter_info)
Constructor, used to represent a ALTER TABLE ANALYZE PARTITION statement.
Definition: sql_partition_admin.h:58
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:545
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:67
Class that represents the ALTER TABLE t1 CHECK PARTITION p statement.
Definition: sql_partition_admin.h:75
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:82
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:555
Class that represents the ALTER TABLE t1 EXCHANGE PARTITION p WITH TABLE t2 statement.
Definition: sql_partition_admin.h:39
bool exchange_partition(THD *thd, Table_ref *, Alter_info *)
Swap places between a partition and a table.
Definition: sql_partition_admin.cc:310
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:75
Class that represents the ALTER TABLE t1 OPTIMIZE PARTITION p statement.
Definition: sql_partition_admin.h:91
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:98
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:565
Class that represents the ALTER TABLE t1 REPAIR PARTITION p statement.
Definition: sql_partition_admin.h:106
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:113
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:575
Class that represents the ALTER TABLE t1 TRUNCATE PARTITION p statement.
Definition: sql_partition_admin.h:121
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:585
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:128
Sql_cmd_analyze_table represents the ANALYZE TABLE statement.
Definition: sql_admin.h:65
Histogram_command
Specifies which (if any) of the commands UPDATE HISTOGRAM or DROP HISTOGRAM that is specified after A...
Definition: sql_admin.h:71
Sql_cmd_check_table represents the CHECK TABLE statement.
Definition: sql_admin.h:207
Represents the common properties of the ALTER TABLE statements.
Definition: sql_alter.h:602
A base class for CREATE/ALTER TABLE commands and friends.
Definition: sql_cmd_ddl_table.h:50
Sql_cmd_ddl_table(Alter_info *alter_info)
Definition: sql_cmd_ddl_table.cc:68
Sql_cmd_optimize_table represents the OPTIMIZE TABLE statement.
Definition: sql_admin.h:222
Sql_cmd_repair_table represents the REPAIR TABLE statement.
Definition: sql_admin.h:237
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_ALTER_TABLE
Definition: my_sqlcommand.h:50