#include <sql_signal.h>
Additional Inherited Members |
virtual enum_sql_command | sql_command_code () const =0 |
| Return the command code for this statement.
|
virtual bool | execute (THD *thd)=0 |
static void * | operator new (size_t size) throw () |
static void * | operator new[] (size_t size) throw () |
static void * | operator new[] (size_t size, MEM_ROOT *mem_root) throw () |
static void * | operator new (size_t size, MEM_ROOT *mem_root) throw () |
static void | operator delete (void *ptr, size_t size) |
static void | operator delete (void *ptr, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, MEM_ROOT *mem_root) |
static void | operator delete[] (void *ptr, size_t size) |
Detailed Description
Sql_cmd_common_signal represents the common properties of the SIGNAL and RESIGNAL statements.
Definition at line 23 of file sql_signal.h.
Constructor & Destructor Documentation
Sql_cmd_common_signal::Sql_cmd_common_signal |
( |
const sp_condition_value * |
cond, |
|
|
const Set_signal_information & |
set |
|
) |
| |
|
inlineprotected |
Constructor.
- Parameters
-
cond | the condition signaled if any, or NULL. |
set | collection of signal condition item assignments. |
Definition at line 31 of file sql_signal.h.
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 |
|
) |
| |
|
staticprotected |
Assign the condition items 'MYSQL_ERRNO', 'level' and 'MESSAGE_TEXT' default values of a condition.
- Parameters
-
cond | the condition to update. |
set_level_code | true if 'level' and 'MYSQL_ERRNO' needs to be overwritten |
level | the level to assign |
sqlcode | the sql code to assign |
Definition at line 90 of file sql_signal.cc.
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
-
thd | the current thread. |
cond | the condition to update. |
Definition at line 105 of file sql_signal.cc.
int Sql_cmd_common_signal::eval_signal_informations |
( |
THD * |
thd, |
|
|
Sql_condition * |
cond |
|
) |
| |
|
protected |
Evaluate each signal condition items for this statement.
- Parameters
-
thd | the current thread. |
cond | the condition to update. |
- Returns
- 0 on success.
Definition at line 259 of file sql_signal.cc.
bool Sql_cmd_common_signal::raise_condition |
( |
THD * |
thd, |
|
|
Sql_condition * |
cond |
|
) |
| |
|
protected |
Raise a SQL condition.
- Parameters
-
thd | the current thread. |
cond | the condition to raise. |
- Returns
- false on success.
Definition at line 416 of file sql_signal.cc.
Member Data Documentation
The condition to signal or resignal. This member is optional and can be NULL (RESIGNAL).
Definition at line 82 of file sql_signal.h.
Set_signal_information Sql_cmd_common_signal::m_set_signal_information |
|
protected |
Collection of 'SET item = value' assignments in the SIGNAL/RESIGNAL statement.
Definition at line 88 of file sql_signal.h.
The documentation for this class was generated from the following files: