Drizzled Public API Documentation

eval0proc.h File Reference

#include "univ.i"
#include "que0types.h"
#include "pars0sym.h"
#include "pars0pars.h"
#include "eval0proc.ic"

Go to the source code of this file.

Functions

UNIV_INLINE que_thr_tproc_step (que_thr_t *thr)
UNIV_INTERN que_thr_tif_step (que_thr_t *thr)
UNIV_INTERN que_thr_twhile_step (que_thr_t *thr)
UNIV_INTERN que_thr_tfor_step (que_thr_t *thr)
UNIV_INTERN que_thr_tassign_step (que_thr_t *thr)
UNIV_INLINE que_thr_tproc_eval_step (que_thr_t *thr)
UNIV_INTERN que_thr_texit_step (que_thr_t *thr)
UNIV_INTERN que_thr_treturn_step (que_thr_t *thr)

Detailed Description

Executes SQL stored procedures and their control structures

Created 1/20/1998 Heikki Tuuri

Definition in file eval0proc.h.


Function Documentation

UNIV_INTERN que_thr_t* assign_step ( que_thr_t thr)

Performs an execution step of an assignment statement node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of an assignment statement node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 149 of file eval0proc.cc.

References sym_node_struct::alias, eval_exp(), eval_node_copy_val(), que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, ut_ad, assign_node_struct::val, and assign_node_struct::var.

UNIV_INTERN que_thr_t* exit_step ( que_thr_t thr)

Performs an execution step of an exit statement node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of an exit statement node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 238 of file eval0proc.cc.

References que_node_get_containing_loop_node(), que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, ut_a, and ut_ad.

UNIV_INTERN que_thr_t* for_step ( que_thr_t thr)

Performs an execution step of a for-loop node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of a for-loop node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 176 of file eval0proc.cc.

References eval_exp(), eval_node_get_int_val(), eval_node_set_int_val(), for_node_struct::loop_end_limit, for_node_struct::loop_end_value, for_node_struct::loop_start_limit, for_node_struct::loop_var, que_thr_struct::prev_node, que_node_get_next(), que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, for_node_struct::stat_list, and ut_ad.

UNIV_INTERN que_thr_t* if_step ( que_thr_t thr)

Performs an execution step of an if-statement node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of an if-statement node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 37 of file eval0proc.cc.

References elsif_node_struct::cond, if_node_struct::cond, if_node_struct::else_part, if_node_struct::elsif_list, eval_exp(), eval_node_get_ibool_val(), que_thr_struct::prev_node, que_node_get_next(), que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, elsif_node_struct::stat_list, if_node_struct::stat_list, and ut_ad.

UNIV_INLINE que_thr_t* proc_eval_step ( que_thr_t thr)

Performs an execution step of a procedure call node.

Returns:
query thread to run next or NULL in: query thread
UNIV_INLINE que_thr_t* proc_step ( que_thr_t thr)

Performs an execution step of a procedure node.

Returns:
query thread to run next or NULL in: query thread
UNIV_INTERN que_thr_t* return_step ( que_thr_t thr)

Performs an execution step of a return-statement node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of a return-statement node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 270 of file eval0proc.cc.

References que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, ut_a, and ut_ad.

UNIV_INTERN que_thr_t* while_step ( que_thr_t thr)

Performs an execution step of a while-statement node.

Returns:
query thread to run next or NULL in: query thread

Performs an execution step of a while-statement node.

Returns:
query thread to run next or NULL
Parameters:
thrin: query thread

Definition at line 113 of file eval0proc.cc.

References while_node_struct::cond, eval_exp(), eval_node_get_ibool_val(), que_thr_struct::prev_node, que_node_get_next(), que_node_get_parent(), que_node_get_type(), que_thr_struct::run_node, while_node_struct::stat_list, and ut_ad.