29#ifndef SQL_CMD_INCLUDED
30#define SQL_CMD_INCLUDED
154 virtual bool is_dml()
const {
return false; }
Prepared_statement: a statement that can contain placeholders.
Definition: sql_prepare.h:346
Abstract base class for traversing the Query_block tree.
Definition: select_lex_visitor.h:40
Representation of an SQL command.
Definition: sql_cmd.h:65
bool m_part_of_sp
Owning prepared statement, NULL if non-prep.
Definition: sql_cmd.h:250
virtual bool prepare(THD *)
Prepare this SQL statement.
Definition: sql_cmd.h:102
void use_secondary_storage_engine(const handlerton *hton)
Mark the current statement as using a secondary storage engine.
Definition: sql_cmd.h:200
virtual bool reprepare_on_execute_required() const
Some SQL commands currently require re-preparation on re-execution of a prepared statement or stored ...
Definition: sql_cmd.h:124
virtual bool execute(THD *thd)=0
Execute this SQL statement.
const handlerton * m_secondary_engine
The secondary storage engine to use for execution of this statement, if any, or nullptr if the primar...
Definition: sql_cmd.h:271
void set_as_part_of_sp()
Mark statement as part of procedure.
Definition: sql_cmd.h:146
bool using_secondary_storage_engine() const
Is this statement using a secondary storage engine?
Definition: sql_cmd.h:213
void operator=(Sql_cmd &)
virtual void cleanup(THD *)
Command-specific reinitialization before execution of prepared statement.
Definition: sql_cmd.h:131
virtual const MYSQL_LEX_CSTRING * eligible_secondary_storage_engine() const
Is this statement of a type and on a form that makes it eligible for execution in a secondary storage...
Definition: sql_cmd.h:174
bool is_optional_transform_prepared()
Definition: sql_cmd.h:228
bool m_prepared_with_optional_transform
Keeps track of whether the statement was prepared optional transformation.
Definition: sql_cmd.h:264
bool is_part_of_sp() const
Definition: sql_cmd.h:151
virtual bool is_dml() const
Definition: sql_cmd.h:154
Sql_cmd()
Definition: sql_cmd.h:233
bool is_regular() const
Definition: sql_cmd.h:90
virtual ~Sql_cmd()
Definition: sql_cmd.h:235
void set_prepared()
Set this statement as prepared.
Definition: sql_cmd.h:246
virtual bool is_single_table_plan() const
Definition: sql_cmd.h:157
Prepared_statement * owner() const
Get the owning prepared statement.
Definition: sql_cmd.h:140
bool m_secondary_engine_enabled
True when statement has been prepared.
Definition: sql_cmd.h:258
virtual bool accept(THD *, Select_lex_visitor *)
Definition: sql_cmd.h:164
void disable_secondary_storage_engine()
Disable use of secondary storage engines in this statement.
Definition: sql_cmd.h:183
bool is_prepared() const
Definition: sql_cmd.h:93
const handlerton * secondary_engine() const
Get the handlerton of the secondary engine that is used for executing this statement,...
Definition: sql_cmd.h:222
virtual enum_sql_command sql_command_code() const =0
Return the command code for this statement.
void set_optional_transform_prepared(bool value)
Definition: sql_cmd.h:224
bool needs_explicit_preparation() const
Definition: sql_cmd.h:83
bool m_prepared
True when statement is part of stored proc.
Definition: sql_cmd.h:251
bool secondary_storage_engine_disabled() const
Has use of secondary storage engines been disabled for this statement?
Definition: sql_cmd.h:191
Prepared_statement * m_owner
Definition: sql_cmd.h:249
void set_owner(Prepared_statement *stmt)
Set the owning prepared statement.
Definition: sql_cmd.h:134
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:34
Fido Client Authentication nullptr
Definition: fido_client_plugin.cc:222
enum_sql_command
Definition: my_sqlcommand.h:46
Visitor interface for parse trees.
Definition: mysql_lex_string.h:40
Definition: mysql_lex_string.h:35
handlerton is a singleton structure - one instance per storage engine - to provide access to storage ...
Definition: handler.h:2622