mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix bug #14816 test_if_order_by_key() expected only Item_fields.
test_if_order_by_key() expected only Item_fields to be in order->item, thus failing to find available index on view's field, which results in reported error. Now test_if_order_by_key() calls order->item->real_item() to get field for choosing index.
This commit is contained in:
@ -10988,7 +10988,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
|
||||
|
||||
for (; order ; order=order->next, const_key_parts>>=1)
|
||||
{
|
||||
Field *field=((Item_field*) (*order->item))->field;
|
||||
Field *field=((Item_field*) (*order->item)->real_item())->field;
|
||||
int flag;
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user