mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
MDEV-35296 DESC does not work in ORDER BY with vector key
only user vector indexes for ORDER BY ... ASC
This commit is contained in:
@@ -26486,7 +26486,7 @@ static int test_if_order_by_key(JOIN *join, ORDER *order, TABLE *table,
|
||||
|
||||
if ((*order->item)->real_item()->type() != Item::FIELD_ITEM)
|
||||
{
|
||||
if (order->next)
|
||||
if (order->next || order->direction != ORDER::ORDER_ASC)
|
||||
DBUG_RETURN(0);
|
||||
|
||||
DBUG_RETURN((*order->item)->part_of_sortkey().is_set(idx));
|
||||
|
Reference in New Issue
Block a user