MySQL 5.6.14 Source Code Document
|
#include <sp_instr.h>
Public Member Functions | |
sp_instr_freturn (uint ip, LEX *lex, Item *expr_item, LEX_STRING expr_query, enum enum_field_types return_field_type) | |
virtual void | print (String *str) |
virtual uint | opt_mark (sp_head *sp, List< sp_instr > *leads) |
virtual bool | exec_core (THD *thd, uint *nextp) |
virtual bool | is_invalid () const |
virtual void | invalidate () |
virtual bool | on_after_expr_parsing (THD *thd) |
virtual LEX_STRING | get_expr_query () const |
Public Member Functions inherited from sp_lex_instr | |
sp_lex_instr (uint ip, sp_pcontext *ctx, LEX *lex, bool is_lex_owner) | |
bool | validate_lex_and_execute_core (THD *thd, uint *nextp, bool open_tables) |
virtual bool | execute (THD *thd, uint *nextp) |
Public Member Functions inherited from sp_instr | |
sp_instr (uint ip, sp_pcontext *ctx) | |
uint | get_ip () const |
virtual uint | get_cont_dest () const |
sp_pcontext * | get_parsing_ctx () const |
virtual uint | opt_shortcut_jump (sp_head *sp, sp_instr *start) |
virtual void | opt_move (uint dst, List< sp_branch_instr > *ibp) |
bool | opt_is_marked () const |
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) |
Protected Member Functions inherited from sp_lex_instr | |
virtual void | get_query (String *sql_query) const |
virtual void | cleanup_before_parsing (THD *thd) |
Protected Attributes inherited from sp_instr | |
bool | m_marked |
uint | m_ip |
Instruction pointer. | |
sp_pcontext * | m_parsing_ctx |
Instruction parsing context. |
sp_instr_freturn represents RETURN statement in stored functions.
Definition at line 578 of file sp_instr.h.
|
virtual |
Execute core function of instruction after all preparations (e.g. setting of proper LEX, saving part of the thread context).
thd | Thread context. |
nextp[out] | next instruction pointer |
Implements sp_lex_instr.
Definition at line 1236 of file sp_instr.cc.
|
inlinevirtual |
Reimplemented from sp_lex_instr.
Definition at line 632 of file sp_instr.h.
|
inlinevirtual |
|
inlinevirtual |
false | if the object (i.e. LEX-object) is valid and exec_core() can be just called. |
true | if the object is not valid any longer, exec_core() can not be called. The original query string should be re-parsed and a new LEX-object should be used. |
Implements sp_lex_instr.
Definition at line 614 of file sp_instr.h.
|
inlinevirtual |
Callback function which is called after the statement query string is successfully parsed, and the thread context has not been switched to the outer context. The thread context contains new LEX-object corresponding to the parsed query string.
thd | Thread context. |
Reimplemented from sp_lex_instr.
Definition at line 623 of file sp_instr.h.
Mark this instruction as reachable during optimization and return the index to the next instruction. Jump instruction will add their destination to the leads list.
Reimplemented from sp_instr.
Definition at line 602 of file sp_instr.h.