Skip to content

Commit

Permalink
MDEV-35975 Server crashes after CREATE VIEW as SELECT ST_COLLECT...
Browse files Browse the repository at this point in the history
Ensure that orig_args is populated during fix_fields
  • Loading branch information
DaveGosselin-MariaDB committed Jan 29, 2025
1 parent fa3f261 commit b663910
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sql/item_sum.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3582,6 +3582,8 @@ Item_sum_str::fix_fields(THD *thd, Item **ref)
if (check_sum_func(thd, ref))
return TRUE;

if (arg_count)
memcpy (orig_args, args, sizeof (Item *) * arg_count);
base_flags|= item_base_t::FIXED;
return FALSE;
}
Expand Down

0 comments on commit b663910

Please sign in to comment.