~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/include/eval0proc.h

Does not work (compile issue in plugin).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 
3
 
Copyright (C) 1998, 2009, Innobase Oy. All Rights Reserved.
4
 
 
5
 
This program is free software; you can redistribute it and/or modify it under
6
 
the terms of the GNU General Public License as published by the Free Software
7
 
Foundation; version 2 of the License.
8
 
 
9
 
This program is distributed in the hope that it will be useful, but WITHOUT
10
 
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11
 
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
 
 
13
 
You should have received a copy of the GNU General Public License along with
14
 
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
 
St, Fifth Floor, Boston, MA 02110-1301 USA
16
 
 
17
 
*****************************************************************************/
18
 
 
19
 
/**************************************************//**
20
 
@file include/eval0proc.h
21
 
Executes SQL stored procedures and their control structures
22
 
 
23
 
Created 1/20/1998 Heikki Tuuri
24
 
*******************************************************/
25
 
 
26
 
#pragma once
27
 
#ifndef eval0proc_h
28
 
#define eval0proc_h
29
 
 
30
 
#include "univ.i"
31
 
#include "que0types.h"
32
 
#include "pars0sym.h"
33
 
#include "pars0pars.h"
34
 
 
35
 
/**********************************************************************//**
36
 
Performs an execution step of a procedure node.
37
 
@return query thread to run next or NULL */
38
 
UNIV_INLINE
39
 
que_thr_t*
40
 
proc_step(
41
 
/*======*/
42
 
        que_thr_t*      thr);   /*!< in: query thread */
43
 
/**********************************************************************//**
44
 
Performs an execution step of an if-statement node.
45
 
@return query thread to run next or NULL */
46
 
UNIV_INTERN
47
 
que_thr_t*
48
 
if_step(
49
 
/*====*/
50
 
        que_thr_t*      thr);   /*!< in: query thread */
51
 
/**********************************************************************//**
52
 
Performs an execution step of a while-statement node.
53
 
@return query thread to run next or NULL */
54
 
UNIV_INTERN
55
 
que_thr_t*
56
 
while_step(
57
 
/*=======*/
58
 
        que_thr_t*      thr);   /*!< in: query thread */
59
 
/**********************************************************************//**
60
 
Performs an execution step of a for-loop node.
61
 
@return query thread to run next or NULL */
62
 
UNIV_INTERN
63
 
que_thr_t*
64
 
for_step(
65
 
/*=====*/
66
 
        que_thr_t*      thr);   /*!< in: query thread */
67
 
/**********************************************************************//**
68
 
Performs an execution step of an assignment statement node.
69
 
@return query thread to run next or NULL */
70
 
UNIV_INTERN
71
 
que_thr_t*
72
 
assign_step(
73
 
/*========*/
74
 
        que_thr_t*      thr);   /*!< in: query thread */
75
 
/**********************************************************************//**
76
 
Performs an execution step of a procedure call node.
77
 
@return query thread to run next or NULL */
78
 
UNIV_INLINE
79
 
que_thr_t*
80
 
proc_eval_step(
81
 
/*===========*/
82
 
        que_thr_t*      thr);   /*!< in: query thread */
83
 
/**********************************************************************//**
84
 
Performs an execution step of an exit statement node.
85
 
@return query thread to run next or NULL */
86
 
UNIV_INTERN
87
 
que_thr_t*
88
 
exit_step(
89
 
/*======*/
90
 
        que_thr_t*      thr);   /*!< in: query thread */
91
 
/**********************************************************************//**
92
 
Performs an execution step of a return-statement node.
93
 
@return query thread to run next or NULL */
94
 
UNIV_INTERN
95
 
que_thr_t*
96
 
return_step(
97
 
/*========*/
98
 
        que_thr_t*      thr);   /*!< in: query thread */
99
 
 
100
 
 
101
 
#ifndef UNIV_NONINL
102
 
#include "eval0proc.ic"
103
 
#endif
104
 
 
105
 
#endif