~drizzle-trunk/drizzle/development

641.2.2 by Monty Taylor
InnoDB Plugin 1.0.3
1
/*****************************************************************************
2
1999.6.1 by kalebral at gmail
update Copyright strings to a more common format to help with creating the master debian copyright file
3
Copyright (C) 1998, 2009, Innobase Oy. All Rights Reserved.
641.2.2 by Monty Taylor
InnoDB Plugin 1.0.3
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
1802.10.2 by Monty Taylor
Update all of the copyright headers to include the correct address.
14
this program; if not, write to the Free Software Foundation, Inc., 51 Franklin
15
St, Fifth Floor, Boston, MA 02110-1301 USA
641.2.2 by Monty Taylor
InnoDB Plugin 1.0.3
16
17
*****************************************************************************/
18
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
19
/**************************************************//**
20
@file include/eval0proc.h
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
21
Executes SQL stored procedures and their control structures
22
23
Created 1/20/1998 Heikki Tuuri
24
*******************************************************/
25
26
#ifndef eval0proc_h
27
#define eval0proc_h
28
29
#include "univ.i"
30
#include "que0types.h"
31
#include "pars0sym.h"
32
#include "pars0pars.h"
33
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
34
/**********************************************************************//**
35
Performs an execution step of a procedure node.
36
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
37
UNIV_INLINE
38
que_thr_t*
39
proc_step(
40
/*======*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
41
	que_thr_t*	thr);	/*!< in: query thread */
42
/**********************************************************************//**
43
Performs an execution step of an if-statement node.
44
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
45
UNIV_INTERN
46
que_thr_t*
47
if_step(
48
/*====*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
49
	que_thr_t*	thr);	/*!< in: query thread */
50
/**********************************************************************//**
51
Performs an execution step of a while-statement node.
52
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
53
UNIV_INTERN
54
que_thr_t*
55
while_step(
56
/*=======*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
57
	que_thr_t*	thr);	/*!< in: query thread */
58
/**********************************************************************//**
59
Performs an execution step of a for-loop node.
60
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
61
UNIV_INTERN
62
que_thr_t*
63
for_step(
64
/*=====*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
65
	que_thr_t*	thr);	/*!< in: query thread */
66
/**********************************************************************//**
67
Performs an execution step of an assignment statement node.
68
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
69
UNIV_INTERN
70
que_thr_t*
71
assign_step(
72
/*========*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
73
	que_thr_t*	thr);	/*!< in: query thread */
74
/**********************************************************************//**
75
Performs an execution step of a procedure call node.
76
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
77
UNIV_INLINE
78
que_thr_t*
79
proc_eval_step(
80
/*===========*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
81
	que_thr_t*	thr);	/*!< in: query thread */
82
/**********************************************************************//**
83
Performs an execution step of an exit statement node.
84
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
85
UNIV_INTERN
86
que_thr_t*
87
exit_step(
88
/*======*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
89
	que_thr_t*	thr);	/*!< in: query thread */
90
/**********************************************************************//**
91
Performs an execution step of a return-statement node.
92
@return	query thread to run next or NULL */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
93
UNIV_INTERN
94
que_thr_t*
95
return_step(
96
/*========*/
641.2.3 by Monty Taylor
InnoDB Plugin 1.0.4
97
	que_thr_t*	thr);	/*!< in: query thread */
641.1.2 by Monty Taylor
Imported 1.0.1 with clean - with no changes.
98
99
100
#ifndef UNIV_NONINL
101
#include "eval0proc.ic"
102
#endif
103
104
#endif