1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fixed problem with distinct select with grouping and subqueries (BUG#7946)

This commit is contained in:
bell@sanja.is.com.ua
2005-01-20 13:56:22 +02:00
parent e05b028c80
commit 3bd203d3f6
3 changed files with 20 additions and 1 deletions

View File

@ -1304,7 +1304,7 @@ JOIN::exec()
curr_join->select_distinct=0; /* Each row is unique */
curr_join->join_free(0); /* Free quick selects */
if (select_distinct && ! group_list)
if (curr_join->select_distinct && ! curr_join->group_list)
{
thd->proc_info="Removing duplicates";
if (curr_join->tmp_having)