1
0
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:
monty@narttu.mysql.fi
2000-12-05 16:14:52 +02:00
parent a2fc71d313
commit 402e8e5c78
2 changed files with 6 additions and 1 deletions

View File

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