summaryrefslogtreecommitdiff
path: root/sql/sp_head.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-08-16 15:24:24 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-05 15:02:43 +0400
commitf37a943f49f704bbffc536ac1e324f1f65bb8fcd (patch)
tree6ff637e35946c46df8a123b63290175bf109bc60 /sql/sp_head.h
parent4b61495576bc240392d7aaaec38ecac8631e447c (diff)
downloadmariadb-git-f37a943f49f704bbffc536ac1e324f1f65bb8fcd.tar.gz
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Moving the code from *.yy to methods: LEX::sp_change_context() LEX::sp_leave_statement() LEX::sp_iterate_statement() to reuse the same code between LEAVE and ITERATE statements. EXIT statement will also reuse the same code.
Diffstat (limited to 'sql/sp_head.h')
-rw-r--r--sql/sp_head.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sp_head.h b/sql/sp_head.h
index b4c3cdaac6c..3d55d9e911d 100644
--- a/sql/sp_head.h
+++ b/sql/sp_head.h
@@ -344,7 +344,15 @@ public:
add_instr_jump(THD *thd, sp_pcontext *spcont, uint dest);
bool
- add_instr_jump_forward_with_backpatch(THD *thd, sp_pcontext *spcont);
+ add_instr_jump_forward_with_backpatch(THD *thd, sp_pcontext *spcont,
+ sp_label *lab);
+ bool
+ add_instr_jump_forward_with_backpatch(THD *thd, sp_pcontext *spcont)
+ {
+ return add_instr_jump_forward_with_backpatch(thd, spcont,
+ spcont->last_label());
+ }
+
/**
Returns true if any substatement in the routine directly