23#ifndef SQL_PARTITION_ADMIN_H
24#define SQL_PARTITION_ADMIN_H
40 using Sql_cmd_common_alter_table::Sql_cmd_common_alter_table;
76 using Sql_cmd_check_table::Sql_cmd_check_table;
92 using Sql_cmd_optimize_table::Sql_cmd_optimize_table;
107 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:204
Class that represents the ALTER TABLE t1 ANALYZE PARTITION p statement.
Definition: sql_partition_admin.h:52
~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:57
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:544
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:66
Class that represents the ALTER TABLE t1 CHECK PARTITION p statement.
Definition: sql_partition_admin.h:74
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:81
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:554
Class that represents the ALTER TABLE t1 EXCHANGE PARTITION p WITH TABLE t2 statement.
Definition: sql_partition_admin.h:38
bool exchange_partition(THD *thd, Table_ref *, Alter_info *)
Swap places between a partition and a table.
Definition: sql_partition_admin.cc:309
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:74
Class that represents the ALTER TABLE t1 OPTIMIZE PARTITION p statement.
Definition: sql_partition_admin.h:90
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:97
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:564
Class that represents the ALTER TABLE t1 REPAIR PARTITION p statement.
Definition: sql_partition_admin.h:105
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:112
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:574
Class that represents the ALTER TABLE t1 TRUNCATE PARTITION p statement.
Definition: sql_partition_admin.h:120
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_partition_admin.cc:584
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_partition_admin.h:127
Sql_cmd_analyze_table represents the ANALYZE TABLE statement.
Definition: sql_admin.h:63
Histogram_command
Specifies which (if any) of the commands UPDATE HISTOGRAM or DROP HISTOGRAM that is specified after A...
Definition: sql_admin.h:69
Sql_cmd_check_table represents the CHECK TABLE statement.
Definition: sql_admin.h:191
Represents the common properties of the ALTER TABLE statements.
Definition: sql_alter.h:601
A base class for CREATE/ALTER TABLE commands and friends.
Definition: sql_cmd_ddl_table.h:49
Sql_cmd_ddl_table(Alter_info *alter_info)
Definition: sql_cmd_ddl_table.cc:67
Sql_cmd_optimize_table represents the OPTIMIZE TABLE statement.
Definition: sql_admin.h:206
Sql_cmd_repair_table represents the REPAIR TABLE statement.
Definition: sql_admin.h:221
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:35
enum_sql_command
Definition: my_sqlcommand.h:45
@ SQLCOM_ALTER_TABLE
Definition: my_sqlcommand.h:49