[MDEV-16592] Change Item::with_sum_func from a member to a virtual method Created: 2018-06-27 Updated: 2021-05-19 Resolved: 2018-06-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Fix Version/s: | 10.4.0 |
| Type: | Task | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This task is similar to what we did earlier for Item::with_subselect (see It's hard to track in the code which Item classes in the hierarchy:
Under terms of this task we'll remove the member Item::with_sum_func and add a method instead:
Item_sum will override this method as follows:
Only a few Item classes need a variable "with_sum_func" value:
They'll store the "with_sum_func" value in a member, using a simple shared class With_sum_func_cache, which they will derive from. Rationale:
|
| Comments |
| Comment by Oleksandr Byelkin [ 2018-06-27 ] |
|
OK to push |