1
0
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:
Varun Gupta
2018-10-14 10:44:00 -07:00
parent b715a0fe45
commit af6077b535
3 changed files with 23 additions and 1 deletions

View File

@ -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;