MySQL 5.6.14 Source Code Document
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
sp_instr_cpop Class Reference

#include <sp_instr.h>

Inheritance diagram for sp_instr_cpop:
Collaboration diagram for sp_instr_cpop:

Public Member Functions

 sp_instr_cpop (uint ip, sp_pcontext *ctx, uint count)
virtual void print (String *str)
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_pcontextget_parsing_ctx () const
virtual uint opt_mark (sp_head *sp, List< sp_instr > *leads)
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_pcontextm_parsing_ctx
 Instruction parsing context.

Detailed Description

sp_instr_cpop instruction is added at the end of BEGIN..END block. It's used to remove declared cursors so that they are not visible any longer.

Definition at line 1265 of file sp_instr.h.

Member Function Documentation

bool sp_instr_cpop::execute ( THD *  thd,
uint *  nextp 
)
virtual

Execute this instruction

Parameters
thdThread context
[out]nextpindex 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.
Returns
Error status.

Implements sp_instr.

Definition at line 1491 of file sp_instr.cc.


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