-
Committer:
Sergey Glukhov
-
Date:
2010-06-30 13:06:25 UTC
-
Revision ID:
sergey.glukhov@sun.com-20100630130625-9p7mu3m3x8a04idz
Bug#51431 Wrong sort order after import of dump file
The problem is that QUICK_SELECT_DESC behaviour depends
on used_key_parts value which can be bigger than selected
best_key_parts value if an engine supports clustered key.
But used_key_parts is overwritten with best_key_parts
value that prevents from correct selection of index
access method. The fix is to preserve used_key_parts
value for further use in QUICK_SELECT_DESC.