1
0
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:
evgen@moonbone.local
2005-11-14 22:10:34 +03:00
parent 5583e98498
commit 35f7b50b18
3 changed files with 19 additions and 1 deletions

View File

@ -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;
/*