mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
distinct.test, distinct.result:
Added test cases for bug #12625. sql_select.cc: Fixed bug #12625. Fixed invalid removal of constant items from the DISTINCT list in the function create_distinct_group.
This commit is contained in:
@ -8517,9 +8517,7 @@ create_distinct_group(THD *thd, Item **ref_pointer_array,
|
||||
li.rewind();
|
||||
while ((item=li++))
|
||||
{
|
||||
if (item->const_item() || item->with_sum_func)
|
||||
continue;
|
||||
if (!item->marker)
|
||||
if (!item->const_item() && !item->with_sum_func && !item->marker)
|
||||
{
|
||||
ORDER *ord=(ORDER*) thd->calloc(sizeof(ORDER));
|
||||
if (!ord)
|
||||
|
Reference in New Issue
Block a user