Bug #12122 | Views: ORDER BY doesn't have to mean merge | ||
---|---|---|---|
Submitted: | 22 Jul 2005 19:59 | Modified: | 26 Feb 2007 20:35 |
Reporter: | Trudy Pelzer | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Views | Severity: | S3 (Non-critical) |
Version: | 5.0.11-beta-debug-log | OS: | Linux (SuSE 9.2) |
Assigned to: | Evgeny Potemkin | CPU Architecture: | Any |
[22 Jul 2005 19:59]
Trudy Pelzer
[22 Jul 2005 22:07]
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/27504
[9 Feb 2007 21:01]
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/commits/19642 ChangeSet@1.2407, 2007-02-10 00:00:07+03:00, evgen@moonbone.local +3 -0 Bug#12122: The MERGE algorithm isn't applicable if the ORDER BY clause is present. A view created with CREATE VIEW ... ORDER BY ... cannot be resolved with the MERGE algorithm, even when no other part of the CREATE VIEW statement would require the view to be resolved using the TEMPTABLE algorithm. The check for presence of the ORDER BY clause in the underlying select is removed from the st_lex::can_be_merged() function. The ORDER BY list of the underlying select is appended to the ORDER BY list
[11 Feb 2007 19:54]
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/commits/19661 ChangeSet@1.2411, 2007-02-11 22:52:12+03:00, evgen@moonbone.local +2 -0 sql_view.cc: Post fix for bug#12122. information_schema.result: Corrected test case after fixing bug#12122.
[14 Feb 2007 10:27]
Igor Babaev
The fix has been pushed to 5.0.36 and 5.1.16-beta.
[26 Feb 2007 20:35]
Paul DuBois
Noted in 5.0.36, 5.1.16 changelogs. The presence of ORDER BY in a view definition prevented the MERGE algorithm from being used to resolve the view even if nothing else in the definition required the TEMPTABLE algorithm.