~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/eval/eval0proc.c

  • Committer: Padraig O'Sullivan
  • Date: 2009-03-30 18:27:35 UTC
  • mto: (968.2.5 mordred)
  • mto: This revision was merged to the branch mainline in revision 971.
  • Revision ID: osullivan.padraig@gmail.com-20090330182735-8tor89czwodcv77s
Removing the last of LIST from the MyISAM storage engine.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
12
 
13
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
 
14
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
 
15
Place, Suite 330, Boston, MA 02111-1307 USA
16
16
 
17
17
*****************************************************************************/
18
18
 
19
 
/**************************************************//**
20
 
@file eval/eval0proc.c
 
19
/******************************************************
21
20
Executes SQL stored procedures and their control structures
22
21
 
23
22
Created 1/20/1998 Heikki Tuuri
29
28
#include "eval0proc.ic"
30
29
#endif
31
30
 
32
 
/**********************************************************************//**
33
 
Performs an execution step of an if-statement node.
34
 
@return query thread to run next or NULL */
 
31
/**************************************************************************
 
32
Performs an execution step of an if-statement node. */
35
33
UNIV_INTERN
36
34
que_thr_t*
37
35
if_step(
38
36
/*====*/
39
 
        que_thr_t*      thr)    /*!< in: query thread */
 
37
                                /* out: query thread to run next or NULL */
 
38
        que_thr_t*      thr)    /* in: query thread */
40
39
{
41
40
        if_node_t*      node;
42
41
        elsif_node_t*   elsif_node;
105
104
        return(thr);
106
105
}
107
106
 
108
 
/**********************************************************************//**
109
 
Performs an execution step of a while-statement node.
110
 
@return query thread to run next or NULL */
 
107
/**************************************************************************
 
108
Performs an execution step of a while-statement node. */
111
109
UNIV_INTERN
112
110
que_thr_t*
113
111
while_step(
114
112
/*=======*/
115
 
        que_thr_t*      thr)    /*!< in: query thread */
 
113
                                /* out: query thread to run next or NULL */
 
114
        que_thr_t*      thr)    /* in: query thread */
116
115
{
117
116
        while_node_t*   node;
118
117
 
141
140
        return(thr);
142
141
}
143
142
 
144
 
/**********************************************************************//**
145
 
Performs an execution step of an assignment statement node.
146
 
@return query thread to run next or NULL */
 
143
/**************************************************************************
 
144
Performs an execution step of an assignment statement node. */
147
145
UNIV_INTERN
148
146
que_thr_t*
149
147
assign_step(
150
148
/*========*/
151
 
        que_thr_t*      thr)    /*!< in: query thread */
 
149
                                /* out: query thread to run next or NULL */
 
150
        que_thr_t*      thr)    /* in: query thread */
152
151
{
153
152
        assign_node_t*  node;
154
153
 
168
167
        return(thr);
169
168
}
170
169
 
171
 
/**********************************************************************//**
172
 
Performs an execution step of a for-loop node.
173
 
@return query thread to run next or NULL */
 
170
/**************************************************************************
 
171
Performs an execution step of a for-loop node. */
174
172
UNIV_INTERN
175
173
que_thr_t*
176
174
for_step(
177
175
/*=====*/
178
 
        que_thr_t*      thr)    /*!< in: query thread */
 
176
                                /* out: query thread to run next or NULL */
 
177
        que_thr_t*      thr)    /* in: query thread */
179
178
{
180
179
        for_node_t*     node;
181
180
        que_node_t*     parent;
230
229
        return(thr);
231
230
}
232
231
 
233
 
/**********************************************************************//**
234
 
Performs an execution step of an exit statement node.
235
 
@return query thread to run next or NULL */
 
232
/**************************************************************************
 
233
Performs an execution step of an exit statement node. */
236
234
UNIV_INTERN
237
235
que_thr_t*
238
236
exit_step(
239
237
/*======*/
240
 
        que_thr_t*      thr)    /*!< in: query thread */
 
238
                                /* out: query thread to run next or NULL */
 
239
        que_thr_t*      thr)    /* in: query thread */
241
240
{
242
241
        exit_node_t*    node;
243
242
        que_node_t*     loop_node;
262
261
        return(thr);
263
262
}
264
263
 
265
 
/**********************************************************************//**
266
 
Performs an execution step of a return-statement node.
267
 
@return query thread to run next or NULL */
 
264
/**************************************************************************
 
265
Performs an execution step of a return-statement node. */
268
266
UNIV_INTERN
269
267
que_thr_t*
270
268
return_step(
271
269
/*========*/
272
 
        que_thr_t*      thr)    /*!< in: query thread */
 
270
                                /* out: query thread to run next or NULL */
 
271
        que_thr_t*      thr)    /* in: query thread */
273
272
{
274
273
        return_node_t*  node;
275
274
        que_node_t*     parent;