diff options
Diffstat (limited to 'sql/sp_rcontext.cc')
-rw-r--r-- | sql/sp_rcontext.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sp_rcontext.cc b/sql/sp_rcontext.cc index b24da0ab239..3a5bc044253 100644 --- a/sql/sp_rcontext.cc +++ b/sql/sp_rcontext.cc @@ -137,7 +137,7 @@ bool sp_rcontext::init_var_items(THD *thd) for (uint idx = 0; idx < num_vars; ++idx) { - if (!(m_var_items[idx]= new Item_field(m_var_table->field[idx]))) + if (!(m_var_items[idx]= new Item_field(thd, m_var_table->field[idx]))) return true; } @@ -387,7 +387,7 @@ Item_cache *sp_rcontext::create_case_expr_holder(THD *thd, thd->set_n_backup_active_arena(thd->spcont->callers_arena, ¤t_arena); - holder= Item_cache::get_cache(item); + holder= Item_cache::get_cache(thd, item); thd->restore_active_arena(thd->spcont->callers_arena, ¤t_arena); |