24#ifndef SQL_CMD_DDL_INCLUDED
25#define SQL_CMD_DDL_INCLUDED
Definition: sql_cmd_ddl.h:74
LEX_STRING m_language
Definition: sql_cmd_ddl.h:88
Sql_cmd_create_library(THD *thd, bool if_not_exists, sp_name *lib_name, LEX_STRING language, LEX_STRING source_code)
Definition: sql_cmd_ddl.cc:63
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:79
char * m_source
Definition: sql_cmd_ddl.h:91
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:71
sp_name * m_name
Definition: sql_cmd_ddl.h:87
bool m_if_not_exists
Definition: sql_cmd_ddl.h:86
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:50
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.h:66
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:60
enum_sql_command my_sql_command
Definition: sql_cmd_ddl.h:52
void set_sql_command_code(enum_sql_command scc)
Definition: sql_cmd_ddl.h:55
Definition: sql_cmd_ddl.h:33
enum enum_sql_cmd_type sql_cmd_type() const override
Definition: sql_cmd_ddl.h:35
Definition: sql_cmd_ddl.h:94
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_cmd_ddl.cc:150
bool m_if_exists
Definition: sql_cmd_ddl.h:106
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_cmd_ddl.h:99
sp_name * m_name
Definition: sql_cmd_ddl.h:107
Sql_cmd_drop_library(bool if_exists, sp_name *lib_name)
Definition: sql_cmd_ddl.h:96
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
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_CREATE_LIBRARY
Definition: my_sqlcommand.h:207
@ SQLCOM_END
Definition: my_sqlcommand.h:211
@ SQLCOM_DROP_LIBRARY
Definition: my_sqlcommand.h:208
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
Definition: mysql_lex_string.h:35