|
MySQL 5.6.14 Source Code Document
|
#include <sp_instr.h>


Public Member Functions | |
| sp_instr_error (uint ip, sp_pcontext *ctx, int errcode) | |
| virtual void | print (String *str) |
| virtual bool | execute (THD *thd, uint *nextp) |
| virtual uint | opt_mark (sp_head *sp, List< sp_instr > *leads) |
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 Attributes inherited from sp_instr | |
| bool | m_marked |
| uint | m_ip |
| Instruction pointer. | |
| sp_pcontext * | m_parsing_ctx |
| Instruction parsing context. | |
sp_instr_error just throws an SQL-condition if the execution flow comes to it. It's used in the CASE implementation to perform runtime-check that the CASE-expression is handled by some WHEN/ELSE clause.
Definition at line 1398 of file sp_instr.h.
|
inlinevirtual |
Execute this instruction
| thd | Thread context | |
| [out] | nextp | index of the next instruction to execute. (For most instructions this will be the instruction following this one). Note that this parameter is undefined in case of errors, use get_cont_dest() to find the continuation instruction for CONTINUE error handlers. |
Implements sp_instr.
Definition at line 1416 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 1423 of file sp_instr.h.