diff options
author | Varun Gupta <varunraiko1803@gmail.com> | 2018-10-14 10:44:00 -0700 |
---|---|---|
committer | Varun Gupta <varunraiko1803@gmail.com> | 2018-10-14 10:44:00 -0700 |
commit | af6077b5358198384eb873ce26f88e7a7ecfe106 (patch) | |
tree | c5059dd7292ec4f601fd4de5487083e52d5c028a /sql/sql_select.cc | |
parent | b715a0fe451425a2cc1c0be587a68c1512b4725a (diff) | |
download | mariadb-git-af6077b5358198384eb873ce26f88e7a7ecfe106.tar.gz |
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
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 6f98bab32d3..a9adbd168a6 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -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; |