diff options
author | jimw@mysql.com <> | 2005-05-18 17:10:48 -0700 |
---|---|---|
committer | jimw@mysql.com <> | 2005-05-18 17:10:48 -0700 |
commit | ae52de495a2248a37086352479eb57b43a5e90a6 (patch) | |
tree | 25aac34fc009cf3cac472a840926494bb545a511 /sql/sp_rcontext.cc | |
parent | d5ee234917dba18b7c263daf5edc42d901ae143c (diff) | |
download | mariadb-git-ae52de495a2248a37086352479eb57b43a5e90a6.tar.gz |
Revert fix for Bug #6048: it introduced new problems.
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r-- | sql/sp_rcontext.cc | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc index fdffa7fb88d..672491a97f2 100644 --- a/sql/sp_rcontext.cc +++ b/sql/sp_rcontext.cc @@ -43,11 +43,8 @@ sp_rcontext::sp_rcontext(uint fsize, uint hmax, uint cmax) int sp_rcontext::set_item_eval(uint idx, Item **item_addr, enum_field_types type) { - extern Item *sp_eval_func_item(THD *thd, Item **it, enum_field_types type, - MEM_ROOT *mem_root, - Item *reuse); - THD *thd= current_thd; - Item *it= sp_eval_func_item(thd, item_addr, type, thd->mem_root, NULL); + extern Item *sp_eval_func_item(THD *thd, Item **it, enum_field_types type); + Item *it= sp_eval_func_item(current_thd, item_addr, type); if (! it) return -1; @@ -114,12 +111,7 @@ void sp_rcontext::save_variables(uint fp) { while (fp < m_count) - { - Item *it= m_frame[fp]; - - m_frame[fp++]= NULL; // Prevent reuse - m_saved.push_front(it); - } + m_saved.push_front(m_frame[fp++]); } void |