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

#include <sp_pcontext.h>

Inheritance diagram for sp_condition_value:
Collaboration diagram for sp_condition_value:

Public Types

enum  enum_type {
  ERROR_CODE, SQLSTATE, WARNING, NOT_FOUND,
  EXCEPTION
}

Public Member Functions

 sp_condition_value (uint _mysqlerr)
 sp_condition_value (const char *_sql_state)
 sp_condition_value (enum_type _type)
bool equals (const sp_condition_value *cv) const

Public Attributes

enum_type type
 Type of the condition value.
char sql_state [SQLSTATE_LENGTH+1]
 SQLSTATE of the condition value.
uint mysqlerr
 MySQL error code of the condition value.

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

This class represents condition-value term in DECLARE CONDITION or DECLARE HANDLER statements. sp_condition_value has little to do with SQL-conditions.

In some sense, this class is a union – a set of filled attributes depends on the sp_condition_value::type value.

Definition at line 128 of file sp_pcontext.h.

Member Function Documentation

bool sp_condition_value::equals ( const sp_condition_value cv) const

Check if two instances of sp_condition_value are equal or not.

Parameters
cvanother instance of sp_condition_value to check.
Returns
true if the instances are equal, false otherwise.

Definition at line 22 of file sp_pcontext.cc.

Here is the caller graph for this function:


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