1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-24 14:48:09 +03:00
Files
mariadb/mysql-test/r
Gleb Shchepa a8067140e8 Fixed bug #36632: SELECT DISTINCT from a simple view on an
InnoDB table, where all selected columns
                  belong to the same unique index key, returns
                  incorrect results

Server executes some queries via QUICK_GROUP_MIN_MAX_SELECT
(MIN/MAX optimization for queries with GROUP BY or DISTINCT
clause) and that optimization implies loose index scan, so all
grouping is done by the QUICK_GROUP_MIN_MAX_SELECT::get_next
method.

The server does not set the precomputed_group_by flag for some
QUICK_GROUP_MIN_MAX_SELECT queries and duplicates grouping by
call to the end_send_group function.

Fix: when the test_if_skip_sort_order function selects loose 
index scan as a best way to satisfy an ORDER BY/GROUP BY type
of query, the precomputed_group_by flag has been set to use 
end_send/end_write functions instead of end_send_group/
end_write_group functions.


mysql-test/r/group_min_max_innodb.result:
  Fixed bug #36632: SELECT DISTINCT from a simple view on an
                    InnoDB table, where all selected columns
                    belong to the same unique index key, returns
                    incorrect results
mysql-test/t/group_min_max_innodb.test:
  Fixed bug #36632: SELECT DISTINCT from a simple view on an
                    InnoDB table, where all selected columns
                    belong to the same unique index key, returns
                    incorrect results
sql/sql_select.cc:
  Fixed bug #36632: SELECT DISTINCT from a simple view on an
                    InnoDB table, where all selected columns
                    belong to the same unique index key, returns
                    incorrect results
2008-06-27 23:50:53 +05:00
..
2008-04-01 12:29:53 +02:00
2008-03-12 13:22:58 +03:00
2008-03-17 14:26:00 +03:00
2008-03-08 01:14:56 +04:00
2008-04-22 21:49:39 -07:00
2008-06-03 12:21:48 +02:00
2008-03-29 00:05:20 +03:00
2008-04-22 21:49:39 -07:00
2008-02-25 21:18:50 +01:00
2008-02-25 21:18:50 +01:00
2008-04-08 20:01:20 +04:00
2008-04-02 00:43:17 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-03-26 20:27:23 +01:00
2008-03-25 17:48:05 -06:00
2008-05-21 17:34:14 +02:00
2008-05-16 19:28:24 +03:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-08 20:01:20 +04:00
2008-03-14 21:37:19 +01:00
2008-03-27 00:55:13 +04:00