mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
MDEV-16990:server crashes in base_list_iterator::next
When we have a query which has implicit_grouping then we are sure that we would end up with only one row so there is no point to do DISTINCT computation
This commit is contained in:
@ -2731,7 +2731,7 @@ bool JOIN::make_aggr_tables_info()
|
||||
remove_duplicates() assumes there is a preceding computation step (and
|
||||
in the degenerate join, there's none)
|
||||
*/
|
||||
if (top_join_tab_count)
|
||||
if (top_join_tab_count && tables_list)
|
||||
curr_tab->distinct= true;
|
||||
|
||||
having= NULL;
|
||||
|
Reference in New Issue
Block a user