1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

10.4 specific fixes for DEFAULT()

This commit is contained in:
Sergei Golubchik
2022-05-09 12:16:04 +02:00
parent a2dd86df9c
commit a8e57906d1
5 changed files with 54 additions and 1 deletions

View File

@ -18094,7 +18094,10 @@ Field *Item_default_value::create_tmp_field_ex(TABLE *table,
as the we have to calculate the default value before we can use it.
*/
get_tmp_field_src(src, param);
return tmp_table_field_from_field_type(table);
Field *result= tmp_table_field_from_field_type(table);
if (result && param->modify_item())
result_field= result;
return result;
}
/*
Same code as in Item_field::create_tmp_field_ex, except no default field