Bug #32558 group by null-returning expression with rollup causes crash
| Submitted: | 21 Nov 2007 6:46 | Modified: | 12 Dec 2007 19:43 |
|---|---|---|---|
| Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server: General | Severity: | S1 (Critical) |
| Version: | 5.1.23 | OS: | Any |
| Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
[21 Nov 2007 6:46]
Shane Bester
[21 Nov 2007 16: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/38219 ChangeSet@1.2578, 2007-11-21 20:53:44+04:00, ramil@mysql.com +3 -0 Fix for bug #32558: group by null-returning expression with rollup causes crash Problem: setting Item_func_rollup_const::null_value property to argument's null_value before (without) the argument evaluation may result in a crash due to wrong null_value. Fix: use is_null() to set Item_func_rollup_const::null_value instead as it evaluates the argument if necessary and returns a proper value.
[28 Nov 2007 10:24]
Bugs System
Pushed into 6.0.4-alpha
[28 Nov 2007 10:26]
Bugs System
Pushed into 5.1.23-rc
[28 Nov 2007 10:27]
Bugs System
Pushed into 5.0.54
[12 Dec 2007 19:43]
Paul DuBois
Noted in 5.0.54, 5.1.23, 6.0.6 changelogs. Use of a NULL-returning GROUP BY expression in conjunction with WITH ROLLUP could cause a server crash.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.081 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.