1
0
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:
Igor Babaev
2016-09-20 19:56:05 -07:00
parent 3da077a6ec
commit 10aa3936a7
3 changed files with 72 additions and 1 deletions

View File

@ -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();