MySQL 8.0.31
Source Code Documentation
eval0proc.h
Go to the documentation of this file.
1/*****************************************************************************
2
3Copyright (c) 1998, 2022, Oracle and/or its affiliates.
4
5This program is free software; you can redistribute it and/or modify it under
6the terms of the GNU General Public License, version 2.0, as published by the
7Free Software Foundation.
8
9This program is also distributed with certain software (including but not
10limited to OpenSSL) that is licensed under separate terms, as designated in a
11particular file or component or in included license documentation. The authors
12of MySQL hereby grant you an additional permission to link the program and
13your derivative works with the separately licensed software that they have
14included with MySQL.
15
16This program is distributed in the hope that it will be useful, but WITHOUT
17ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
18FOR A PARTICULAR PURPOSE. See the GNU General Public License, version 2.0,
19for more details.
20
21You should have received a copy of the GNU General Public License along with
22this program; if not, write to the Free Software Foundation, Inc.,
2351 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
24
25*****************************************************************************/
26
27/** @file include/eval0proc.h
28 Executes SQL stored procedures and their control structures
29
30 Created 1/20/1998 Heikki Tuuri
31 *******************************************************/
32
33#ifndef eval0proc_h
34#define eval0proc_h
35
36#include "pars0pars.h"
37#include "pars0sym.h"
38#include "que0types.h"
39#include "univ.i"
40
41/** Performs an execution step of a procedure node.
42 @return query thread to run next or NULL */
43static inline que_thr_t *proc_step(que_thr_t *thr); /*!< in: query thread */
44/** Performs an execution step of an if-statement node.
45 @return query thread to run next or NULL */
46que_thr_t *if_step(que_thr_t *thr); /*!< in: query thread */
47/** Performs an execution step of a while-statement node.
48 @return query thread to run next or NULL */
49que_thr_t *while_step(que_thr_t *thr); /*!< in: query thread */
50/** Performs an execution step of a for-loop node.
51 @return query thread to run next or NULL */
52que_thr_t *for_step(que_thr_t *thr); /*!< in: query thread */
53/** Performs an execution step of an assignment statement node.
54 @return query thread to run next or NULL */
55que_thr_t *assign_step(que_thr_t *thr); /*!< in: query thread */
56/** Performs an execution step of a procedure call node.
57 @return query thread to run next or NULL */
59 que_thr_t *thr); /*!< in: query thread */
60/** Performs an execution step of an exit statement node.
61 @return query thread to run next or NULL */
62que_thr_t *exit_step(que_thr_t *thr); /*!< in: query thread */
63/** Performs an execution step of a return-statement node.
64 @return query thread to run next or NULL */
65que_thr_t *return_step(que_thr_t *thr); /*!< in: query thread */
66
67#include "eval0proc.ic"
68
69#endif
que_thr_t * if_step(que_thr_t *thr)
Performs an execution step of an if-statement node.
Definition: eval0proc.cc:39
que_thr_t * assign_step(que_thr_t *thr)
Performs an execution step of an assignment statement node.
Definition: eval0proc.cc:136
que_thr_t * while_step(que_thr_t *thr)
Performs an execution step of a while-statement node.
Definition: eval0proc.cc:106
que_thr_t * for_step(que_thr_t *thr)
Performs an execution step of a for-loop node.
Definition: eval0proc.cc:158
static que_thr_t * proc_step(que_thr_t *thr)
Performs an execution step of a procedure node.
static que_thr_t * proc_eval_step(que_thr_t *thr)
Performs an execution step of a procedure call node.
que_thr_t * exit_step(que_thr_t *thr)
Performs an execution step of an exit statement node.
Definition: eval0proc.cc:211
que_thr_t * return_step(que_thr_t *thr)
Performs an execution step of a return-statement node.
Definition: eval0proc.cc:238
Executes SQL stored procedures and their control structures.
SQL parser.
SQL parser symbol table.
Query graph global types.
Definition: que0que.h:241
Version control for database, common definitions, and include files.