My Project
Public Types | Public Member Functions | Public Attributes
sp_variable Class Reference

#include <sp_pcontext.h>

Inheritance diagram for sp_variable:
Sql_alloc

List of all members.

Public Types

enum  enum_mode { MODE_IN, MODE_OUT, MODE_INOUT }

Public Member Functions

 sp_variable (LEX_STRING _name, enum_field_types _type, enum_mode _mode, uint _offset)

Public Attributes

LEX_STRING name
 Name of the SP-variable.
enum enum_field_types type
 Field-type of the SP-variable.
enum_mode mode
 Mode of the SP-variable.
uint offset
Itemdefault_value
 Default value of the SP-variable (if any).
Create_field field_def
 Full type information (field meta-data) of the SP-variable.

Detailed Description

This class represents a stored program variable or a parameter (also referenced as 'SP-variable').


Member Data Documentation

The index to the variable's value in the runtime frame.

It is calculated during parsing and used when creating sp_instr_set instructions and Item_splocal items. I.e. values are set/referred by array indexing in runtime.


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