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-06-17 11:12:21 -03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-01 12:29:53 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-03-07 21:14:34 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-14 17:21:18 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-30 10:28:19 -03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-31 11:29:03 +02:00
2008-03-12 13:22:58 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-17 14:26:00 +03:00
2008-05-13 14:06:32 +02:00
2008-03-30 00:54:08 +02:00
2008-03-28 13:16:41 +01:00
2008-05-16 11:35:15 -04:00
2008-03-08 01:14:56 +04:00
2008-03-26 10:27:00 +01:00
2008-03-26 10:27:00 +01:00
2008-04-23 11:06:26 +05:00
2008-02-20 19:49:26 +01:00
2008-03-26 10:27:00 +01:00
2008-03-26 10:27:00 +01:00
2008-02-20 19:49:26 +01:00
2008-04-10 15:14:28 +02:00
2008-02-22 13:30:33 +03:00
2008-02-22 13:30:33 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-15 15:44:11 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-22 21:49:39 -07:00
2008-04-10 15:14:28 +02:00
2008-04-17 15:51:17 +02:00
2008-03-27 08:20:25 +01:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-02-20 14:40:46 +01:00
2008-05-13 14:06:32 +02:00
2008-05-09 09:43:02 +02:00
2008-04-10 15:14:28 +02:00
2008-04-30 10:28:19 -03:00
2008-04-30 10:28:19 -03:00
2008-04-10 15:14:28 +02:00
2008-03-13 14:54:29 -03:00
2008-03-23 20:35:00 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-15 15:44:11 +02:00
2008-05-13 20:27:46 +05:00
2008-05-01 14:54:59 +03:00
2008-03-19 14:25:36 +03:00
2008-02-20 00:33:43 +03:00
2008-06-03 12:21:48 +02:00
2008-04-09 15:56:25 +02:00
2008-03-12 11:19:46 +03:00
2008-03-12 11:19:46 +03:00
2008-04-10 15:14:28 +02:00
2008-05-20 22:23:58 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-28 14:40:11 +03:00
2008-03-28 18:09:14 +03:00
2008-04-10 15:14:28 +02:00
2008-04-30 17:39:51 -06:00
2008-06-27 23:50:53 +05:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-13 17:01:02 +05:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-22 11:01:31 +03:00
2008-03-14 14:12:39 +04:00
2008-03-27 15:54:45 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-02-19 09:44:09 -07:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-06-17 11:12:21 -03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-06-03 13:25:41 +02:00
2008-05-14 10:45:32 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-09 09:43:02 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-07 09:58:21 +04:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-03-27 17:43:17 +01:00
2008-03-13 14:54:29 -03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-02-28 11:34:08 -03:00
2008-03-29 00:05:20 +03:00
2008-04-10 15:14:28 +02:00
2008-04-15 15:44:11 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-20 22:23:58 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-28 21:46:18 +03:00
2008-02-29 17:56:50 +04:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-18 11:38:41 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-16 16:32:33 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-26 02:45:58 +05:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-14 10:45:32 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-18 14:21:25 +05:00
2008-03-27 13:42:34 +08:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-30 14:49:37 +02:00
2008-05-13 17:01:02 +05:00
2008-03-07 13:59:36 +01:00
2008-05-16 11:35:15 -04:00
2008-03-07 11:15:49 +02:00
2008-04-24 10:50:38 -04:00
2008-04-29 19:08:52 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-03 20:35:44 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02: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-03-07 13:46:29 -08:00
2008-03-17 16:11:26 +01:00
2008-03-17 16:11:26 +01:00
2008-06-17 12:41:06 +02:00
2008-02-24 14:12:17 +01:00
2008-04-10 15:14:28 +02:00
2008-04-08 20:01:20 +04:00
2008-04-18 21:18:53 +02:00
2008-05-20 22:43:26 +04:00
2008-05-20 22:43:26 +04:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02: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-04-10 15:14:28 +02:00
2008-06-03 10:59:46 -03:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-06 16:17:23 +02:00
2008-03-26 17:36:12 +01:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-03-27 03:18:46 +01:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-08 10:20:58 +05:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-13 00:37:45 +05:00
2008-02-28 23:01:22 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-12 11:19:46 +03:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-02-28 15:35:25 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-20 22:23:58 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +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-03-21 12:08:04 -06:00
2008-03-22 11:01:31 +03:00
2008-05-13 14:06:32 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-02-24 13:58:07 +01:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-21 17:34:14 +02:00
2008-04-10 15:14:28 +02:00
2008-05-13 17:01:02 +05:00
2008-04-23 11:06:26 +05:00
2008-03-07 21:14:34 +03:00
2008-05-16 19:28:24 +03:00
2008-03-20 12:22:02 +01:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-20 21:07:11 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-02-22 12:30:17 +04:00
2008-03-28 19:16:52 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-23 11:36:17 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-03-22 11:01:31 +03:00
2008-03-12 16:13:33 +03:00
2008-04-08 20:01:20 +04:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-13 17:01:02 +05:00
2008-04-09 21:19:41 -04:00
2008-04-28 14:12:52 -04:00
2008-03-14 21:37:19 +01:00
2008-05-13 18:10:46 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-07 13:59:36 +01:00
2008-02-26 12:03:59 -03:00
2008-03-28 18:10:04 +03:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-03-22 11:01:31 +03:00
2008-03-27 00:55:13 +04:00
2008-05-08 20:13:39 +02:00
2008-05-08 20:13:39 +02:00
2008-04-10 15:14:28 +02:00
2008-04-10 15:14:28 +02:00
2008-05-13 17:01:02 +05:00