My Project
Public Member Functions
sp_instr_jump_if_not Class Reference

#include <sp_instr.h>

Inheritance diagram for sp_instr_jump_if_not:
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_if_not (uint ip, LEX *lex, Item *expr_item, LEX_STRING expr_query)
 sp_instr_jump_if_not (uint ip, LEX *lex, Item *expr_item, LEX_STRING expr_query, uint dest)
virtual void print (String *str)
virtual bool exec_core (THD *thd, uint *nextp)
virtual bool on_after_expr_parsing (THD *thd)

Detailed Description

sp_instr_jump_if_not implements SP-instruction, which does the jump if its SQL-expression is false.


Member Function Documentation

bool sp_instr_jump_if_not::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 bool sp_instr_jump_if_not::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