From 656d6f399eb78f1c1daad8cba72c86ab2176d6ef Mon Sep 17 00:00:00 2001 From: Eugene Kosov Date: Fri, 15 Dec 2017 23:33:03 +0300 Subject: [PATCH] SQL: missing stmt_arena [#387] --- sql/item_timefunc.cc | 1 + 1 file changed, 1 insertion(+) 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;