summaryrefslogtreecommitdiff
path: root/sql/sp_pcontext.h
diff options
context:
space:
mode:
authorunknown <pem@mysql.com>2002-12-17 10:01:52 +0100
committerunknown <pem@mysql.com>2002-12-17 10:01:52 +0100
commitb12330b3d9597b6da2ee8ef51765093e9de38e42 (patch)
tree469b436d3b14fa1ce75e1ba75885837f65c38b0a /sql/sp_pcontext.h
parentf6611aa0ab45aa5586101b34c444b8fab305fac9 (diff)
downloadmariadb-git-b12330b3d9597b6da2ee8ef51765093e9de38e42.tar.gz
Added parsing of CASE (both generic and "simple").
sql/sp_head.cc: Init. the simple_case flag. sql/sp_head.h: New flag for (simple)case parsing. sql/sp_pcontext.cc: Removed push_gen_label method (not needed any more). sql/sp_pcontext.h: Removed push_gen_label method (not needed any more). Fixed bug in pop(). sql/sql_yacc.yy: Added CASE parsing.
Diffstat (limited to 'sql/sp_pcontext.h')
-rw-r--r--sql/sp_pcontext.h5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql/sp_pcontext.h b/sql/sp_pcontext.h
index 2eb59172365..6ab38e77017 100644
--- a/sql/sp_pcontext.h
+++ b/sql/sp_pcontext.h
@@ -99,7 +99,7 @@ class sp_pcontext : public Sql_alloc
inline void
pop(uint num = 1)
{
- if (num >= m_i)
+ if (num < m_i)
m_i -= num;
}
@@ -120,9 +120,6 @@ class sp_pcontext : public Sql_alloc
push_label(char *name, uint ip);
sp_label_t *
- push_gen_label(uint ip);
-
- sp_label_t *
find_label(char *name);
inline sp_label_t *