diff options
Diffstat (limited to 'sql/sp.cc')
-rw-r--r-- | sql/sp.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/sql/sp.cc b/sql/sp.cc index 5eb12c9fae5..c8dc328ced1 100644 --- a/sql/sp.cc +++ b/sql/sp.cc @@ -19,8 +19,8 @@ #include "sp.h" #include "sp_head.h" - static sp_head * - sp_find_cached_function(THD *thd, char *name, uint namelen); +static sp_head * +sp_find_cached_function(THD *thd, char *name, uint namelen); /* * @@ -373,6 +373,13 @@ sp_cache_functions(THD *thd, LEX *lex) void sp_clear_function_cache(THD *thd) { + //QQ This doesn't work for some completely mysterious reason, but since this + //QQ is tempoarary code anyway, we just ignore it for now. + //QQ List_iterator_fast<sp_head> li(thd->spfuns); + //QQ sp_head *sp; + + //QQ while ((sp= li++)) + //QQ sp->destroy(); thd->spfuns.empty(); } |