diff options
author | Sergei Golubchik <serg@mariadb.org> | 2018-03-12 18:53:59 +0100 |
---|---|---|
committer | Sergei Golubchik <serg@mariadb.org> | 2018-03-14 12:40:00 +0100 |
commit | bf1ca14ff3f3faa9f7a018097b25aa0f66d068cd (patch) | |
tree | 9399202e713a5a7fd455bd7ce230eeac7926bf4b /sql/keycaches.cc | |
parent | c14733f64e0ec372b255587c0a7726e752c84d16 (diff) | |
download | mariadb-git-bf1ca14ff3f3faa9f7a018097b25aa0f66d068cd.tar.gz |
cleanup: Item_func_case
reorder items in args[] array. Instead of
when1,then1,when2,then2,...[,case][,else]
sort them as
[case,]when1,when2,...,then1,then2,...[,else]
in this case all items used for comparison take a continuous part
of the array and can be aggregated directly. and all items that
can be returned take a continuous part of the array and can be
aggregated directly. Old code had to copy them to a temporary
array before aggreation, and then copy back (thd->change_item_tree)
everything that was changed.
Diffstat (limited to 'sql/keycaches.cc')
0 files changed, 0 insertions, 0 deletions