diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-03-16 16:28:52 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-04-05 15:03:00 +0400 |
commit | 9dfe7bf86dd1743dc3bf33a8c09937aca9db503a (patch) | |
tree | fec18db97f751592fe62bacd19faca4d96cab23f /sql/sql_lex.h | |
parent | 84c55a5668db582aa92dd2ccf076fbb783894b12 (diff) | |
download | mariadb-git-9dfe7bf86dd1743dc3bf33a8c09937aca9db503a.tar.gz |
MDEV-10598 Variable declarations can go after cursor declarations
Based on a contributed patch from Jerome Brauge.
Diffstat (limited to 'sql/sql_lex.h')
-rw-r--r-- | sql/sql_lex.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_lex.h b/sql/sql_lex.h index 5f02bbac9b6..8afc02a099c 100644 --- a/sql/sql_lex.h +++ b/sql/sql_lex.h @@ -3165,7 +3165,8 @@ public: bool sp_declare_cursor(THD *thd, const LEX_STRING name, class sp_lex_cursor *cursor_stmt, - sp_pcontext *param_ctx); + sp_pcontext *param_ctx, bool add_cpush_instr); + bool sp_open_cursor(THD *thd, const LEX_STRING name, List<sp_assignment_lex> *parameters); Item_splocal *create_item_for_sp_var(LEX_STRING name, sp_variable *spvar, |