1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00
Files
mariadb/mysql-test/t
unknown a01d48f92e Fix for BUG#16710.
The bug was due to a missed case in the detection of whether an index
can be used for loose scan. More precisely, the range optimizer chose
to use loose index scan for queries for which the condition(s) over
an index key part could not be pushed to the index together with the
loose scan.

As a result, loose index scan was selecting the first row in the
index with a given GROUP BY prefix, and was applying the WHERE
clause after that, while it should have inspected all rows with
the given prefix, and apply the WHERE clause to all of them.

The fix detects and skips such cases.


mysql-test/r/group_min_max.result:
  Added test for BUG#16710.
mysql-test/t/group_min_max.test:
  Added test for BUG#16710.
sql/item.cc:
  Added new method [Item | Item_field]::find_item_in_field_list_processor.
sql/item.h:
  Added new method [Item | Item_field]::find_item_in_field_list_processor.
sql/opt_range.cc:
  Handle the case when there is no MIN/MAX aggregate function, and a
  keypart of the index being considered, that is after the GROUP BY
  prefix, is used in the WHERE clause and the condition where it is
  used cannot be pushed to the index.
  If this is the case, we rule out this index.
2006-03-31 12:34:28 +03:00
..
2005-10-28 23:17:51 +04:00
2005-07-28 17:09:54 +03:00
2005-07-28 17:09:54 +03:00
2005-07-28 17:09:54 +03:00
2005-10-13 11:28:06 +02:00
2005-11-03 16:17:11 +04:00
2005-07-28 17:09:54 +03:00
2005-09-08 18:15:05 +01:00
2006-02-14 17:21:18 +01:00
2005-09-15 21:05:42 +02:00
2006-02-07 13:26:35 +01:00
2005-10-12 00:58:22 +03:00
2005-08-26 22:25:45 -07:00
2006-03-31 12:34:28 +03:00
2006-01-06 00:47:49 +02:00
2006-01-27 09:24:45 +01:00
2005-12-06 21:28:13 +01:00
2005-10-28 02:36:19 +03:00
2005-08-12 17:57:19 +03:00
2006-01-27 21:20:28 -08:00
2005-08-29 21:06:45 +02:00
2005-07-28 17:09:54 +03:00
2005-07-28 17:09:54 +03:00
2005-09-02 09:50:17 +03:00
2005-12-06 21:28:13 +01:00
2005-09-26 22:43:09 -07:00
2006-01-06 00:47:49 +02:00
2006-02-07 19:57:31 +01:00
2005-07-28 17:09:54 +03:00
2005-09-15 22:21:30 +04:00
2005-10-12 13:56:07 +02:00
2005-08-19 11:38:14 +03:00
2005-09-14 23:12:01 +03:00
2006-01-13 16:27:38 +03:00
2005-10-13 11:28:06 +02:00
2005-10-13 11:28:06 +02:00
2005-10-15 14:32:37 -07:00
2005-08-09 00:13:49 +03:00
2006-02-14 08:24:01 +04:00
2006-02-01 20:43:43 -08:00