Bug #7914 rollup modifies original result (set to null) with aggrecate insifde function
| Submitted: | 14 Jan 2005 17:46 | Modified: | 23 May 2005 2:22 |
|---|---|---|---|
| Reporter: | Martin Friebe (Gold Quality Contributor) (OCA) | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.1.8 | OS: | - |
| Assigned to: | Igor Babaev | CPU Architecture: | Any |
[14 Jan 2005 17:46]
Martin Friebe
[16 Mar 2005 20:24]
Martin Friebe
applies to functions without aggregate too:
select a, 2, 1+1, "X", concat("X","C"), database() from (select 1 a union select 2) t group by a with rollup;
+---+---+-----+---+-----------------+------------+
| a | 2 | 1+1 | X | concat("X","C") | database() |
+---+---+-----+---+-----------------+------------+
| 1 | 2 | 0 | X | | NULL |
| 2 | 2 | 0 | X | | NULL |
|NULL | 2 | 0 | X | | NULL |
+---+---+-----+---+-----------------+------------+
fixed values are fine, calculations like 1+1 or concat are not
[18 May 2005 12:16]
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/25034
[21 May 2005 8:49]
Igor Babaev
This bug was due to the fact that this->set_items_ref_array(...) was called instead of curr_join->set_items_ref_array(...).
ChangeSet
1.2279 05/05/18 05:15:48 igor@rurik.mysql.com +3 -0
olap.result, olap.test:
Added test cases for bug #7914.
sql_select.cc:
Fixed bug #7914: rollup over expresssions such as sum(a)+1.
The fix will appear in releases 4.1.13 and 5.0.7.
[23 May 2005 2:22]
Paul DuBois
Noted in 4.1.13, 5.0.7 changelogs.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.066 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.