24#ifndef SQL_CMD_DDL_INCLUDED
25#define SQL_CMD_DDL_INCLUDED
Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:929
Definition: sql_cmd_ddl.h:99
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:103
sp_name * m_name
Definition: sql_cmd_ddl.h:110
LEX_STRING m_comment
Definition: sql_cmd_ddl.h:113
Sql_cmd_alter_library(THD *thd, sp_name *name, LEX_STRING comment)
Definition: sql_cmd_ddl.cc:188
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:193
Definition: sql_cmd_ddl.h:76
LEX_CSTRING m_comment
Definition: sql_cmd_ddl.h:95
LEX_CSTRING m_source
Definition: sql_cmd_ddl.h:94
bool m_is_binary
Definition: sql_cmd_ddl.h:96
LEX_CSTRING m_language
Definition: sql_cmd_ddl.h:91
Sql_cmd_create_library(THD *thd, bool if_not_exists, sp_name *name, LEX_CSTRING language, LEX_CSTRING comment, LEX_STRING source_code, bool is_binary)
Definition: sql_cmd_ddl.cc:77
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:82
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:88
sp_name * m_name
Definition: sql_cmd_ddl.h:90
bool m_if_not_exists
Definition: sql_cmd_ddl.h:89
Definition: sql_cmd_ddl.h:132
bool m_if_not_exists
Definition: sql_cmd_ddl.h:148
LEX_CSTRING m_argument_name
Definition: sql_cmd_ddl.h:150
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:141
LEX_CSTRING m_policy_name
Definition: sql_cmd_ddl.h:149
Sql_cmd_create_masking_policy(bool if_not_exists, LEX_CSTRING policy_name, LEX_CSTRING arg_name, Item *expr)
Definition: sql_cmd_ddl.h:134
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:251
Item * m_masking_expr
Definition: sql_cmd_ddl.h:151
This is a dummy class for old-style commands whose code is in sql_parse.cc, not in the execute() func...
Definition: sql_cmd_ddl.h:52
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.h:68
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:62
enum_sql_command my_sql_command
Definition: sql_cmd_ddl.h:54
void set_sql_command_code(enum_sql_command scc)
Definition: sql_cmd_ddl.h:57
Definition: sql_cmd_ddl.h:35
enum enum_sql_cmd_type sql_cmd_type() const override
Definition: sql_cmd_ddl.h:37
Definition: sql_cmd_ddl.h:116
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:209
bool m_if_exists
Definition: sql_cmd_ddl.h:128
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:121
sp_name * m_name
Definition: sql_cmd_ddl.h:129
Sql_cmd_drop_library(bool if_exists, sp_name *lib_name)
Definition: sql_cmd_ddl.h:118
Definition: sql_cmd_ddl.h:154
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:159
Sql_cmd_drop_masking_policy(bool if_exists, LEX_CSTRING policy_name)
Definition: sql_cmd_ddl.h:156
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:272
LEX_CSTRING m_policy_name
Definition: sql_cmd_ddl.h:167
bool m_if_exists
Definition: sql_cmd_ddl.h:166
Representation of an SQL command.
Definition: sql_cmd.h:83
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
Definition: sp_head.h:124
#define comment
Definition: lexyy.cc:959
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_CREATE_MASKING_POLICY
Definition: my_sqlcommand.h:212
@ SQLCOM_ALTER_LIBRARY
Definition: my_sqlcommand.h:210
@ SQLCOM_CREATE_LIBRARY
Definition: my_sqlcommand.h:207
@ SQLCOM_END
Definition: my_sqlcommand.h:216
@ SQLCOM_DROP_LIBRARY
Definition: my_sqlcommand.h:208
@ SQLCOM_DROP_MASKING_POLICY
Definition: my_sqlcommand.h:213
Representation of an SQL command.
enum_sql_cmd_type
What type of Sql_cmd we're dealing with (DML, DDL, ...).
Definition: sql_cmd.h:53
@ SQL_CMD_DDL
Definition: sql_cmd.h:55
case opt name
Definition: sslopt-case.h:29
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35