mirror of
https://github.com/MariaDB/server.git
synced 2025-11-06 13:10:12 +03:00
use partial primary key if another index can prevent filesort The fix for bug #28404 causes the covering ordering indexes to be preferred unconditionally over non-covering and ref indexes. Fixed by comparing the cost of using a covering index to the cost of using a ref index even for covering ordering indexes. Added an assertion to clarify the condition the local variables should be in.
12 KiB
12 KiB