My Project
Protected Member Functions | Static Protected Member Functions | Protected Attributes
Sql_cmd_common_signal Class Reference

#include <sql_signal.h>

Inheritance diagram for Sql_cmd_common_signal:
Sql_cmd Sql_alloc Sql_cmd_resignal Sql_cmd_signal

List of all members.

Protected Member Functions

 Sql_cmd_common_signal (const sp_condition_value *cond, const Set_signal_information &set)
void eval_defaults (THD *thd, Sql_condition *cond)
int eval_signal_informations (THD *thd, Sql_condition *cond)
bool raise_condition (THD *thd, Sql_condition *cond)

Static Protected Member Functions

static void assign_defaults (Sql_condition *cond, bool set_level_code, Sql_condition::enum_warning_level level, int sqlcode)

Protected Attributes

const sp_condition_valuem_cond
Set_signal_information m_set_signal_information

Detailed Description

Sql_cmd_common_signal represents the common properties of the SIGNAL and RESIGNAL statements.


Constructor & Destructor Documentation

Sql_cmd_common_signal::Sql_cmd_common_signal ( const sp_condition_value cond,
const Set_signal_information &  set 
) [inline, protected]

Constructor.

Parameters:
condthe condition signaled if any, or NULL.
setcollection of signal condition item assignments.

Member Function Documentation

void Sql_cmd_common_signal::assign_defaults ( Sql_condition cond,
bool  set_level_code,
Sql_condition::enum_warning_level  level,
int  sqlcode 
) [static, protected]

Assign the condition items 'MYSQL_ERRNO', 'level' and 'MESSAGE_TEXT' default values of a condition.

Parameters:
condthe condition to update.
set_level_codetrue if 'level' and 'MYSQL_ERRNO' needs to be overwritten
levelthe level to assign
sqlcodethe sql code to assign
void Sql_cmd_common_signal::eval_defaults ( THD *  thd,
Sql_condition cond 
) [protected]

Evaluate the condition items 'SQLSTATE', 'MYSQL_ERRNO', 'level' and 'MESSAGE_TEXT' default values for this statement.

Parameters:
thdthe current thread.
condthe condition to update.
int Sql_cmd_common_signal::eval_signal_informations ( THD *  thd,
Sql_condition cond 
) [protected]

Evaluate each signal condition items for this statement.

Parameters:
thdthe current thread.
condthe condition to update.
Returns:
0 on success.
bool Sql_cmd_common_signal::raise_condition ( THD *  thd,
Sql_condition cond 
) [protected]

Raise a SQL condition.

Parameters:
thdthe current thread.
condthe condition to raise.
Returns:
false on success.

Member Data Documentation

The condition to signal or resignal. This member is optional and can be NULL (RESIGNAL).

Set_signal_information Sql_cmd_common_signal::m_set_signal_information [protected]

Collection of 'SET item = value' assignments in the SIGNAL/RESIGNAL statement.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines