1
0
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:
Sergei Golubchik
2024-10-30 21:50:29 +01:00
parent 7feec30939
commit ad33ffc0b5
3 changed files with 22 additions and 1 deletions

View File

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