mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Fix for core dump in DISTINCT
This commit is contained in:
@@ -5218,8 +5218,10 @@ remove_duplicates(JOIN *join, TABLE *entry,List<Item> &fields)
|
||||
List_iterator<Item> it(fields);
|
||||
Item *item;
|
||||
while ((item=it++))
|
||||
if (item->tmp_table_field())
|
||||
{
|
||||
if (item->tmp_table_field() && ! item->const_item())
|
||||
field_count++;
|
||||
}
|
||||
|
||||
if (!field_count)
|
||||
{ // only const items
|
||||
|
Reference in New Issue
Block a user