| Bug #9681 | rollup in from-subquery returns error "collumn cannot be null" | ||
|---|---|---|---|
| Submitted: | 6 Apr 2005 17:28 | Modified: | 28 Apr 2005 17:41 |
| Reporter: | Martin Friebe (Gold Quality Contributor) | ||
| Status: | Closed | ||
| Category: | Server: Optimizer | Severity: | S3 (Non-critical) |
| Version: | 4.1.11 | OS: | Any (*) |
| Assigned to: | Igor Babaev | Target Version: | |
[6 Apr 2005 17:28]
Martin Friebe
[20 Apr 2005 1: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/internals/24154
[26 Apr 2005 1:46]
Igor Babaev
ChangeSet
1.2199 05/04/19 16:54:30 igor@rurik.mysql.com +3 -0
sql_select.cc:
Fixed bug #9681.
The bug happened with queries using derived tables specified by
a SELECT with ROLLUP, such as:
SELECT * FROM (SELECT a, SUM(a) FROM t1 GROUP BY a WITH ROLLUP) t2,
if column a of table t1 is declared as NOT NULL.
This was to the fact that the first column of the temporary table
created to contain the derived table erroneously inherited the NOT NULL
attribute from column a.
olap.result, olap.test:
Added a test case for bug #9681.
The fix will appear in version 4.1.12 and 5.0.5
[28 Apr 2005 17:41]
Paul DuBois
Noted in 4.1.12, 5.0.5 changelogs.
