My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes
sp_rcontext::Sql_condition_info Class Reference

#include <sp_rcontext.h>

List of all members.

Public Member Functions

 Sql_condition_info (uint _sql_errno, const char *_sql_state, Sql_condition::enum_warning_level _level, const char *_message)

Public Attributes

uint sql_errno
 SQL error code.
Sql_condition::enum_warning_level level
 Error level.
char sql_state [SQLSTATE_LENGTH+1]
 SQLSTATE.
char message [MYSQL_ERRMSG_SIZE]
 Text message.

Detailed Description

This class stores basic information about SQL-condition, such as:

It's used to organize runtime SQL-handler call stack.

Standard Sql_condition class can not be used, because we don't always have an Sql_condition object for an SQL-condition in Diagnostics_area.

Eventually, this class should be moved to sql_error.h, and be a part of standard SQL-condition processing (Diagnostics_area should contain an object for active SQL-condition, not just information stored in DA's fields).


Constructor & Destructor Documentation

sp_rcontext::Sql_condition_info::Sql_condition_info ( uint  _sql_errno,
const char *  _sql_state,
Sql_condition::enum_warning_level  _level,
const char *  _message 
) [inline]

The constructor.

Parameters:
_sql_errnoSQL error number.
_sql_stateDiagnostic status.
_levelError level of the condition.
_messageError message.

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