Bug #31742 | delete from ... order by function call that causes an error, asserts server | ||
---|---|---|---|
Submitted: | 22 Oct 2007 9:01 | Modified: | 30 Oct 2007 0:37 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: General | Severity: | S6 (Debug Builds) |
Version: | 5.0.50-debug,5.1.23-debug | OS: | Any |
Assigned to: | Alexey Kopytov | CPU Architecture: | Any |
Tags: | assertion |
[22 Oct 2007 9:01]
Shane Bester
[22 Oct 2007 9:10]
MySQL Verification Team
Another testcase: delimiter // drop function if exists `f1` // create function `f1`() returns int begin select 1 from `t_nonexisting table` into @a; return @a; end // delimiter ; drop table if exists `t1`; create table `t1` (a int)engine=heap; insert into `t1` values (0); delete from `t1` order by (`f1`()) limit 1;
[22 Oct 2007 12:10]
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/36026 ChangeSet@1.2547, 2007-10-22 16:10:08+04:00, kaa@polly.(none) +3 -0 Fix for bug #31742: delete from ... order by function call that causes an error, asserts server In case of a fatal error during filesort in find_all_keys() the error was returned without the necessary handler uninitialization. Fixed by changing the code so that handler uninitialization is performed before returning the error.
[23 Oct 2007 12:31]
Alexey Kopytov
Queued to 5.0-opt, 5.1-opt and 5.2-opt.
[29 Oct 2007 8:42]
Bugs System
Pushed into 5.0.52
[29 Oct 2007 8:45]
Bugs System
Pushed into 5.1.23-beta
[29 Oct 2007 8:49]
Bugs System
Pushed into 6.0.4-alpha
[30 Oct 2007 0:37]
Paul DuBois
Noted in 5.0.52, 5.1.23, 6.0.4 changelogs.