mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Fixed bug mdev-10842.
In some cases the function compare_order_elements() erroneously returned CMP_EQ for not equal elements.
This commit is contained in:
@ -238,7 +238,7 @@ setup_windows(THD *thd, Ref_ptr_array ref_pointer_array, TABLE_LIST *tables,
|
||||
static
|
||||
int compare_order_elements(ORDER *ord1, ORDER *ord2)
|
||||
{
|
||||
if (*ord1->item == *ord2->item)
|
||||
if (*ord1->item == *ord2->item && ord1->direction == ord2->direction)
|
||||
return CMP_EQ;
|
||||
Item *item1= (*ord1->item)->real_item();
|
||||
Item *item2= (*ord2->item)->real_item();
|
||||
|
Reference in New Issue
Block a user