diff options
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r-- | sql/sp_pcontext.h | 10 |
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(); |