From f37a943f49f704bbffc536ac1e324f1f65bb8fcd Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Tue, 16 Aug 2016 15:24:24 +0400 Subject: 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. --- sql/sp_head.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sql/sp_head.h') 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 -- cgit v1.2.1