My Project
Public Types | Public Member Functions | Friends
Sql_condition Class Reference

#include <sql_error.h>

Inheritance diagram for Sql_condition:
Sql_alloc

List of all members.

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

Detailed Description

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


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.

Get the MESSAGE_OCTET_LENGTH of this condition.

Returns:
the length in bytes of the message text.
const char * Sql_condition::get_message_text ( ) const

Get the MESSAGE_TEXT of this condition.

Returns:
the message text.
uint Sql_condition::get_sql_errno ( ) const [inline]

Get the SQL_ERRNO of this condition.

Returns:
the sql error number condition item.
const char* Sql_condition::get_sqlstate ( ) const [inline]

Get the SQLSTATE of this condition.

Returns:
the sql state.

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