MySQL 8.0.40
Source Code Documentation
|
Representation of a SQL condition. More...
#include <sql_error.h>
Public Types | |
enum | enum_severity_level { SL_NOTE , SL_WARNING , SL_ERROR , SEVERITY_END } |
Enumeration value describing the severity of the condition. More... | |
Public Member Functions | |
const char * | message_text () const |
Get the MESSAGE_TEXT of this condition. More... | |
size_t | message_octet_length () const |
Get the MESSAGE_OCTET_LENGTH of this condition. More... | |
const char * | returned_sqlstate () const |
Get the RETURNED_SQLSTATE of this condition. More... | |
uint | mysql_errno () const |
Get the MYSQL_ERRNO of this condition. More... | |
Sql_condition::enum_severity_level | severity () const |
Get the severity level of this condition. More... | |
Private Member Functions | |
Sql_condition (MEM_ROOT *mem_root) | |
Constructor. More... | |
Sql_condition (MEM_ROOT *mem_root, uint mysql_errno, const char *returned_sqlstate, Sql_condition::enum_severity_level severity, const char *message_text) | |
Constructor. More... | |
~Sql_condition ()=default | |
Destructor. More... | |
void | copy_opt_attributes (const Sql_condition *cond) |
Copy optional condition items attributes. More... | |
void | set_message_text (const char *message_text) |
Set the condition message test. More... | |
void | set_returned_sqlstate (const char *sqlstate) |
Set the RETURNED_SQLSTATE of this condition. More... | |
void | set_class_origins () |
Set the CLASS_ORIGIN and SUBCLASS_ORIGIN of this condition. More... | |
Private Attributes | |
String | m_class_origin |
SQL CLASS_ORIGIN condition item. More... | |
String | m_subclass_origin |
SQL SUBCLASS_ORIGIN condition item. More... | |
String | m_constraint_catalog |
SQL CONSTRAINT_CATALOG condition item. More... | |
String | m_constraint_schema |
SQL CONSTRAINT_SCHEMA condition item. More... | |
String | m_constraint_name |
SQL CONSTRAINT_NAME condition item. More... | |
String | m_catalog_name |
SQL CATALOG_NAME condition item. More... | |
String | m_schema_name |
SQL SCHEMA_NAME condition item. More... | |
String | m_table_name |
SQL TABLE_NAME condition item. More... | |
String | m_column_name |
SQL COLUMN_NAME condition item. More... | |
String | m_cursor_name |
SQL CURSOR_NAME condition item. More... | |
String | m_message_text |
Message text, expressed in the character set implied by –language. More... | |
uint | m_mysql_errno |
MySQL extension, MYSQL_ERRNO condition item. More... | |
char | m_returned_sqlstate [SQLSTATE_LENGTH+1] |
SQL RETURNED_SQLSTATE condition item. More... | |
Sql_condition::enum_severity_level | m_severity_level |
Severity (error, warning, note) of this condition. More... | |
Sql_condition * | m_next_condition |
Pointers for participating in the list of conditions. More... | |
Sql_condition ** | m_prev_condition |
MEM_ROOT * | m_mem_root |
Memory root to use to hold condition item values. More... | |
Friends | |
class | THD |
class | Diagnostics_area |
class | Sql_cmd_common_signal |
class | Sql_cmd_signal |
class | Sql_cmd_resignal |
class | sp_rcontext |
class | Condition_information_item |
Representation of a SQL condition.
A SQL condition can be a completion condition (note, warning), or an exception condition (error, not found).
|
private |
Constructor.
mem_root | Memory root to use for the condition items of this condition. |
|
private |
Constructor.
mem_root | Memory root to use for the condition items of this condition. |
mysql_errno | MYSQL_ERRNO |
returned_sqlstate | RETURNED_SQLSTATE |
severity | Severity level - error, warning or note. |
message_text | MESSAGE_TEXT |
|
privatedefault |
Destructor.
|
private |
Copy optional condition items attributes.
cond | the condition to copy. |
|
inline |
Get the MESSAGE_OCTET_LENGTH of this condition.
|
inline |
Get the MESSAGE_TEXT of this condition.
|
inline |
Get the MYSQL_ERRNO of this condition.
|
inline |
Get the RETURNED_SQLSTATE of this condition.
|
private |
Set the CLASS_ORIGIN and SUBCLASS_ORIGIN of this condition.
|
private |
Set the condition message test.
message_text | Message text, expressed in the character set derived from the server –language option |
|
inlineprivate |
Set the RETURNED_SQLSTATE of this condition.
|
inline |
Get the severity level of this condition.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
SQL CATALOG_NAME condition item.
|
private |
SQL CLASS_ORIGIN condition item.
|
private |
SQL COLUMN_NAME condition item.
|
private |
SQL CONSTRAINT_CATALOG condition item.
|
private |
SQL CONSTRAINT_NAME condition item.
|
private |
SQL CONSTRAINT_SCHEMA condition item.
|
private |
SQL CURSOR_NAME condition item.
|
private |
Memory root to use to hold condition item values.
|
private |
Message text, expressed in the character set implied by –language.
|
private |
MySQL extension, MYSQL_ERRNO condition item.
|
private |
Pointers for participating in the list of conditions.
|
private |
|
private |
SQL RETURNED_SQLSTATE condition item.
This member is always NUL terminated.
|
private |
SQL SCHEMA_NAME condition item.
|
private |
Severity (error, warning, note) of this condition.
|
private |
SQL SUBCLASS_ORIGIN condition item.
|
private |
SQL TABLE_NAME condition item.