diff options
author | unknown <pem@mysql.com> | 2002-12-17 10:01:52 +0100 |
---|---|---|
committer | unknown <pem@mysql.com> | 2002-12-17 10:01:52 +0100 |
commit | b12330b3d9597b6da2ee8ef51765093e9de38e42 (patch) | |
tree | 469b436d3b14fa1ce75e1ba75885837f65c38b0a /sql/sp_pcontext.cc | |
parent | f6611aa0ab45aa5586101b34c444b8fab305fac9 (diff) | |
download | mariadb-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.cc')
-rw-r--r-- | sql/sp_pcontext.cc | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/sql/sp_pcontext.cc b/sql/sp_pcontext.cc index 96296e54184..407151c3e38 100644 --- a/sql/sp_pcontext.cc +++ b/sql/sp_pcontext.cc @@ -107,20 +107,6 @@ sp_pcontext::push_label(char *name, uint ip) } sp_label_t * -sp_pcontext::push_gen_label(uint ip) -{ - sp_label_t *lab= NULL; - char *s= my_malloc(10, MYF(MY_WME)); // 10=... - - if (s) - { - sprintf(s, ".%08x", m_genlab++); // ...9+1 - lab= push_label(s, ip); - } - return lab; -} - -sp_label_t * sp_pcontext::find_label(char *name) { List_iterator_fast<sp_label_t> li(m_label); |