1
0
mirror of https://github.com/MariaDB/server.git synced 2025-11-25 17:25:02 +03:00
Files
mariadb/mysql-test/r
Igor Babaev 78b5e8d6ca Fixed bug mdev-11745.
Due to this bug many queries that contained a window function
with MIN/MAX aggregation returned wrong results.

Calculation of a MIN/MAX aggregate function uses cache objects
and a comparator object that are created and set up in
Item_sum_hybrid::fix_fields () by a call of Item_sum_hybrid::setup_hybrid().
The latter binds the objects to the first argument of the
MIN/MAX function. Meanwhile window function perform aggregation
over fields of a temporary table. So binding must be done rather to
these fields. The earliest moment when setup the objects used in
MIN/max functions can be done is after all calls of the method
split_sum_func().

This patch introduces this late setup, but only for aggregate
functions used in window functions.
Probably it makes sense to use this late setup for all MIN/MAX
objects.
2017-02-09 19:34:01 -08:00
..
2017-01-10 14:39:28 +02:00
2017-01-19 12:06:13 +02:00
2016-12-29 13:23:18 +01:00
2016-09-19 12:31:19 +04:00
2016-12-29 13:23:18 +01:00
2017-01-18 21:03:01 -08:00
2017-01-28 15:47:11 -08:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-12 20:35:41 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-11 09:53:42 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2016-12-29 13:23:18 +01:00
2017-01-05 10:48:03 +02:00
2016-12-29 13:23:18 +01:00
2016-12-30 08:56:13 +02:00
2016-12-29 13:23:18 +01:00
2016-09-27 09:21:19 +02:00
2017-01-05 20:44:26 +02:00
2017-02-09 19:34:01 -08:00
2016-09-24 15:12:34 +02:00
2017-02-09 19:34:01 -08:00