summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2017-03-16 16:28:52 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-05 15:03:00 +0400
commit9dfe7bf86dd1743dc3bf33a8c09937aca9db503a (patch)
treefec18db97f751592fe62bacd19faca4d96cab23f /sql/sp_head.h
parent84c55a5668db582aa92dd2ccf076fbb783894b12 (diff)
downloadmariadb-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/sp_head.h')
-rw-r--r--sql/sp_head.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index 8322a92636e..d8709feb084 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -573,6 +573,9 @@ public:
void
do_cont_backpatch();
+ /// Add cpush instructions for all cursors declared in the current frame
+ bool sp_add_instr_cpush_for_cursors(THD *thd, sp_pcontext *pcontext);
+
char *name(uint *lenp = 0) const
{
if (lenp)