MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Sql_condition Class Reference

#include <sql_error.h>

Inheritance diagram for Sql_condition:
Collaboration diagram for Sql_condition:

Public Types

enum  enum_warning_level { WARN_LEVEL_NOTE, WARN_LEVEL_WARN, WARN_LEVEL_ERROR, WARN_LEVEL_END }

Public Member Functions

const char * get_message_text () const
int get_message_octet_length () const
const char * get_sqlstate () const
uint get_sql_errno () const
Sql_condition::enum_warning_level get_level () const

Friends

class THD
class Warning_info
class Sql_cmd_common_signal
class Sql_cmd_signal
class Sql_cmd_resignal
class sp_rcontext
class Condition_information_item

Additional Inherited Members

- Static Public Member Functions inherited from Sql_alloc
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

Representation of a SQL condition. A SQL condition can be a completion condition (note, warning), or an exception condition (error, not found).

Definition at line 35 of file sql_error.h.

Member Function Documentation

Sql_condition::enum_warning_level Sql_condition::get_level ( ) const
inline

Get the error level of this condition.

Returns
the error level condition item.

Definition at line 77 of file sql_error.h.

Here is the caller graph for this function:

int Sql_condition::get_message_octet_length ( ) const

Get the MESSAGE_OCTET_LENGTH of this condition.

Returns
the length in bytes of the message text.

Definition at line 309 of file sql_error.cc.

const char * Sql_condition::get_message_text ( ) const

Get the MESSAGE_TEXT of this condition.

Returns
the message text.

Definition at line 303 of file sql_error.cc.

Here is the caller graph for this function:

uint Sql_condition::get_sql_errno ( ) const
inline

Get the SQL_ERRNO of this condition.

Returns
the sql error number condition item.

Definition at line 70 of file sql_error.h.

Here is the caller graph for this function:

const char* Sql_condition::get_sqlstate ( ) const
inline

Get the SQLSTATE of this condition.

Returns
the sql state.

Definition at line 63 of file sql_error.h.

Here is the caller graph for this function:


The documentation for this class was generated from the following files: