Bug #14816 | VIEW performs filesort when using ORDER BY but underlying table does not | ||
---|---|---|---|
Submitted: | 10 Nov 2005 9:40 | Modified: | 24 Nov 2005 0:29 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.0.15, 5.0.16-bk | OS: | Linux (Linux, Windows) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[10 Nov 2005 9:40]
Shane Bester
[10 Nov 2005 10:08]
Valeriy Kravchuk
Thank you for a bug report. Verified just as described on 5.0.16-BK (ChangeSet@1.1972, 2005-11-05 22:45:54-08:00, igor@rurik.mysql.com).
[14 Nov 2005 21:57]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/internals/32252
[16 Nov 2005 0:18]
Evgeny Potemkin
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. Fixed in 5.0.17, cset 1.1952.18.1
[24 Nov 2005 0:29]
Paul DuBois
Noted in 5.0.17 changelog.