summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.h
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.org>2016-08-17 10:33:31 +0400
committerAlexander Barkov <bar@mariadb.org>2017-04-05 15:02:44 +0400
commit8feb984211f559ad8bf2f231544cf8852b23632d (patch)
tree7fac25a4c0ff09df8cbca18390efb652c560c9c8 /sql/sp_pcontext.h
parent765d9d6429588d3aa27ded3e58bb6bac3e7c139b (diff)
downloadmariadb-git-8feb984211f559ad8bf2f231544cf8852b23632d.tar.gz
MDEV-10411 Providing compatibility for basic PL/SQL constructs
Part 5: EXIT statement Adding unconditional EXIT statement: EXIT [ label ] Conditional EXIT statements with WHERE clause will be added in a separate patch.
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r--sql/sp_pcontext.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h
index cbebc157dbb..6cbd98e89a8 100644
--- a/sql/sp_pcontext.h
+++ b/sql/sp_pcontext.h
@@ -402,10 +402,18 @@ public:
// Labels.
/////////////////////////////////////////////////////////////////////////
- sp_label *push_label(THD *thd, const LEX_STRING name, uint ip);
+ sp_label *push_label(THD *thd, const LEX_STRING name, uint ip,
+ sp_label::enum_type type);
+
+ sp_label *push_label(THD *thd, const LEX_STRING name, uint ip)
+ {
+ return push_label(thd, name, ip, sp_label::IMPLICIT);
+ }
sp_label *find_label(const LEX_STRING name);
+ sp_label *find_label_current_loop_start();
+
sp_label *last_label()
{
sp_label *label= m_labels.head();