mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge olga.mysql.com:/home/igor/mysql-5.0-opt
into olga.mysql.com:/home/igor/mysql-5.1-opt
This commit is contained in:
@ -13799,9 +13799,7 @@ create_distinct_group(THD *thd, Item **ref_pointer_array,
|
||||
ORDER *ord_iter;
|
||||
for (ord_iter= group; ord_iter; ord_iter= ord_iter->next)
|
||||
if ((*ord_iter->item)->eq(item, 1))
|
||||
break;
|
||||
if (ord_iter)
|
||||
continue;
|
||||
goto next_item;
|
||||
|
||||
ORDER *ord=(ORDER*) thd->calloc(sizeof(ORDER));
|
||||
if (!ord)
|
||||
@ -13816,6 +13814,7 @@ create_distinct_group(THD *thd, Item **ref_pointer_array,
|
||||
*prev=ord;
|
||||
prev= &ord->next;
|
||||
}
|
||||
next_item:
|
||||
ref_pointer_array++;
|
||||
}
|
||||
*prev=0;
|
||||
|
Reference in New Issue
Block a user