mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
Merge 10.7 into 10.8
This commit is contained in:
@@ -2620,6 +2620,11 @@ int Field::set_default()
|
||||
if (default_value)
|
||||
{
|
||||
Query_arena backup_arena;
|
||||
/*
|
||||
TODO: this may impose memory leak until table flush.
|
||||
See comment in
|
||||
TABLE::update_virtual_fields(handler *, enum_vcol_update_mode).
|
||||
*/
|
||||
table->in_use->set_n_backup_active_arena(table->expr_arena, &backup_arena);
|
||||
int rc= default_value->expr->save_in_field(this, 0);
|
||||
table->in_use->restore_active_arena(table->expr_arena, &backup_arena);
|
||||
|
Reference in New Issue
Block a user