MySQL 8.4.3
Source Code Documentation
sp_handler Class Reference

This class represents 'DECLARE HANDLER' statement. More...

#include <sp_pcontext.h>

Public Types

enum  enum_type { EXIT , CONTINUE }
 Enumeration of possible handler types. More...
 

Public Member Functions

 sp_handler (enum_type _type, sp_pcontext *_scope)
 The constructor. More...
 
void print_conditions (String *str) const
 Print all conditions of a handler in human-readable form. More...
 
void print (String *str) const
 Print type and conditions (but not body) of a handler. More...
 

Public Attributes

enum_type type
 Handler type. More...
 
sp_pcontextscope
 BEGIN..END block of the handler. More...
 
List< const sp_condition_valuecondition_values
 Conditions caught by this handler. More...
 

Detailed Description

This class represents 'DECLARE HANDLER' statement.

Member Enumeration Documentation

◆ enum_type

Enumeration of possible handler types.

Note: UNDO handlers are not (and have never been) supported.

Enumerator
EXIT 
CONTINUE 

Constructor & Destructor Documentation

◆ sp_handler()

sp_handler::sp_handler ( enum_type  _type,
sp_pcontext _scope 
)
inline

The constructor.

Parameters
_typeSQL-handler type.
_scopeHandler scope.

Member Function Documentation

◆ print()

void sp_handler::print ( String str) const

Print type and conditions (but not body) of a handler.

Parameters
strThe variable to print to.

◆ print_conditions()

void sp_handler::print_conditions ( String str) const

Print all conditions of a handler in human-readable form.

Parameters
strThe variable to print to.

Member Data Documentation

◆ condition_values

List<const sp_condition_value> sp_handler::condition_values

Conditions caught by this handler.

◆ scope

sp_pcontext* sp_handler::scope

BEGIN..END block of the handler.

◆ type

enum_type sp_handler::type

Handler type.


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