Base class that is used to represent any kind of expression in a relational query.
Definition: item.h:936
Sql_cmd_common_signal represents the common properties of the SIGNAL and RESIGNAL statements.
Definition: sql_signal.h:88
Sql_cmd_common_signal(const sp_condition_value *cond, Set_signal_information *set)
Constructor.
Definition: sql_signal.h:95
~Sql_cmd_common_signal() override=default
const sp_condition_value * m_cond
The condition to signal or resignal.
Definition: sql_signal.h:136
Set_signal_information * m_set_signal_information
Collection of 'SET item = value' assignments in the SIGNAL/RESIGNAL statement.
Definition: sql_signal.h:142
int eval_signal_informations(THD *thd, Sql_condition *cond)
Evaluate each signal condition items for this statement.
Definition: sql_signal.cc:236
static void assign_defaults(THD *thd, Sql_condition *cond, bool set_level_code, Sql_condition::enum_severity_level level, int sqlcode)
Assign the condition items 'MYSQL_ERRNO', 'level' and 'MESSAGE_TEXT' default values of a condition.
Definition: sql_signal.cc:98
void eval_defaults(THD *thd, Sql_condition *cond)
Evaluate the condition items 'SQLSTATE', 'MYSQL_ERRNO', 'level' and 'MESSAGE_TEXT' default values for...
Definition: sql_signal.cc:109
Sql_cmd_resignal represents a RESIGNAL statement.
Definition: sql_signal.h:168
~Sql_cmd_resignal() override=default
bool execute(THD *thd) override
Execute RESIGNAL SQL-statement.
Definition: sql_signal.cc:421
Sql_cmd_resignal(const sp_condition_value *cond, Set_signal_information *set)
Constructor, used to represent a RESIGNAL statement.
Definition: sql_signal.h:175
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_signal.h:180
Sql_cmd_signal represents a SIGNAL statement.
Definition: sql_signal.h:148
enum_sql_command sql_command_code() const override
Return the command code for this statement.
Definition: sql_signal.h:160
~Sql_cmd_signal() override=default
Sql_cmd_signal(const sp_condition_value *cond, Set_signal_information *set)
Constructor, used to represent a SIGNAL statement.
Definition: sql_signal.h:155
bool execute(THD *thd) override
Execute this SQL statement.
Definition: sql_signal.cc:366
Representation of an SQL command.
Definition: sql_cmd.h:83
Representation of a SQL condition.
Definition: sql_error.h:58
enum_severity_level
Enumeration value describing the severity of the condition.
Definition: sql_error.h:63
For each client connection we create a separate thread with THD serving as a thread/connection descri...
Definition: sql_lexer_thd.h:36
This class represents condition-value term in DECLARE CONDITION or DECLARE HANDLER statements.
Definition: sp_pcontext.h:133
enum_sql_command
Definition: my_sqlcommand.h:46
@ SQLCOM_RESIGNAL
Definition: my_sqlcommand.h:178
@ SQLCOM_SIGNAL
Definition: my_sqlcommand.h:177
std::set< Key, Compare, ut::allocator< Key > > set
Specialization of set which uses ut_allocator.
Definition: ut0new.h:2883
Representation of an SQL command.
enum_condition_item_name
This enumeration list all the condition item names of a condition in the SQL condition area.
Definition: sql_signal.h:41
@ CIN_TABLE_NAME
Definition: sql_signal.h:55
@ CIN_CURSOR_NAME
Definition: sql_signal.h:57
@ CIN_SCHEMA_NAME
Definition: sql_signal.h:54
@ CIN_FIRST_PROPERTY
Definition: sql_signal.h:48
@ CIN_CLASS_ORIGIN
Definition: sql_signal.h:47
@ CIN_MYSQL_ERRNO
Definition: sql_signal.h:59
@ CIN_CONSTRAINT_SCHEMA
Definition: sql_signal.h:51
@ CIN_SUBCLASS_ORIGIN
Definition: sql_signal.h:49
@ CIN_LAST_PROPERTY
Definition: sql_signal.h:60
@ CIN_COLUMN_NAME
Definition: sql_signal.h:56
@ CIN_CONSTRAINT_CATALOG
Definition: sql_signal.h:50
@ CIN_MESSAGE_TEXT
Definition: sql_signal.h:58
@ CIN_CONSTRAINT_NAME
Definition: sql_signal.h:52
@ CIN_CATALOG_NAME
Definition: sql_signal.h:53
case opt name
Definition: sslopt-case.h:29