My Project
Public Member Functions
sp_instr_jump_case_when Class Reference

#include <sp_instr.h>

Inheritance diagram for sp_instr_jump_case_when:
sp_lex_branch_instr sp_lex_instr sp_branch_instr sp_instr Sql_alloc sp_printable

List of all members.

Public Member Functions

 sp_instr_jump_case_when (uint ip, LEX *lex, int case_expr_id, Item *when_expr_item, LEX_STRING when_expr_query)
virtual void print (String *str)
virtual bool exec_core (THD *thd, uint *nextp)
virtual void invalidate ()
virtual bool on_after_expr_parsing (THD *thd)

Detailed Description

sp_instr_jump_case_when instruction is used in the "simple CASE" implementation. It's a jump instruction with the following condition: (CASE-expression = WHEN-expression) CASE-expression is retrieved from sp_rcontext; WHEN-expression is kept by this instruction.


Member Function Documentation

bool sp_instr_jump_case_when::exec_core ( THD *  thd,
uint *  nextp 
) [virtual]

Execute core function of instruction after all preparations (e.g. setting of proper LEX, saving part of the thread context).

Parameters:
thdThread context.
nextp[out]next instruction pointer
Returns:
Error flag.

Implements sp_lex_instr.

virtual void sp_instr_jump_case_when::invalidate ( ) [inline, virtual]

Invalidate the object.

Reimplemented from sp_lex_branch_instr.

virtual bool sp_instr_jump_case_when::on_after_expr_parsing ( THD *  thd) [inline, virtual]

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.

Parameters:
thdThread context.
Returns:
Error flag.

Reimplemented from sp_lex_instr.


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