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