MySQL 5.6.14 Source Code Document
|
#include <sp_pcontext.h>
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 |
Item * | default_value |
Default value of the SP-variable (if any). | |
Create_field | field_def |
Full type information (field meta-data) of the SP-variable. |
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) |
This class represents a stored program variable or a parameter (also referenced as 'SP-variable').
Definition at line 29 of file sp_pcontext.h.
uint sp_variable::offset |
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.
Definition at line 53 of file sp_pcontext.h.