diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc index 4563f4555f5..ed4b2839170 100644 --- a/sql/item_timefunc.cc +++ b/sql/item_timefunc.cc @@ -2662,6 +2662,7 @@ void Item_datetime_from_unixtime_typecast::fix_length_and_dec() case REAL_RESULT: case DECIMAL_RESULT: { + Query_arena_stmt on_stmt_arena(thd); Item_func_from_unixtime *a= new (thd->mem_root) Item_func_from_unixtime(thd, args[0]); a->fix_length_and_dec(); args[0]= a;