SQL: missing stmt_arena [#387]

This commit is contained in:
Eugene Kosov 2017-12-15 23:33:03 +03:00 committed by GitHub
parent 9b55cc73f1
commit 656d6f399e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;