mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Revert MDEV-16592 "Change Item::with_sum_func to a virtual method"
Added back variable 'with_sum_func' to Item class as a bit field. This made the code shorter, faster (removed some virtual methods, less code to create an initialized item etc) and made many Item's 7 bytes smaller. The code is also easier to understand as 'with_sum_func' is threated as any other Item variable when creating or copying items.
This commit is contained in:
committed by
Sergei Golubchik
parent
963e5e406d
commit
ae39f4f6d6
@ -7711,7 +7711,7 @@ bool setup_fields(THD *thd, Ref_ptr_array ref_pointer_array,
|
||||
Item_window_func::split_sum_func.
|
||||
*/
|
||||
if (sum_func_list &&
|
||||
((item->with_sum_func() && item->type() != Item::SUM_FUNC_ITEM) ||
|
||||
((item->with_sum_func && item->type() != Item::SUM_FUNC_ITEM) ||
|
||||
item->with_window_func))
|
||||
{
|
||||
item->split_sum_func(thd, ref_pointer_array, *sum_func_list,
|
||||
|
Reference in New Issue
Block a user