MySQL 8.3.0
Source Code Documentation
sp_label Class Reference

This class represents an SQL/PSM label. More...

#include <sp_pcontext.h>

Public Types

enum  enum_type { IMPLICIT , BEGIN , ITERATION }
 

Public Member Functions

 sp_label (LEX_CSTRING _name, uint _ip, enum_type _type, sp_pcontext *_ctx)
 

Public Attributes

LEX_CSTRING name
 Name of the label. More...
 
uint ip
 Instruction pointer of the label. More...
 
enum_type type
 Type of the label. More...
 
class sp_pcontextctx
 Scope of the label. More...
 

Detailed Description

This class represents an SQL/PSM label.

Can refer to the identifier used with the "label_name:" construct which may precede some SQL/PSM statements, or to an implicit implementation-dependent identifier which the parser inserts before a high-level flow control statement such as IF/WHILE/REPEAT/LOOP, when such statement is rewritten into a combination of low-level jump/jump_if instructions and labels.

Member Enumeration Documentation

◆ enum_type

Enumerator
IMPLICIT 

Implicit label generated by parser.

BEGIN 

Label at BEGIN.

ITERATION 

Label at iteration control.

Constructor & Destructor Documentation

◆ sp_label()

sp_label::sp_label ( LEX_CSTRING  _name,
uint  _ip,
enum_type  _type,
sp_pcontext _ctx 
)
inline

Member Data Documentation

◆ ctx

class sp_pcontext* sp_label::ctx

Scope of the label.

◆ ip

uint sp_label::ip

Instruction pointer of the label.

◆ name

LEX_CSTRING sp_label::name

Name of the label.

◆ type

enum_type sp_label::type

Type of the label.


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