Bug #9298 | Wrong handling of int4 unsigned columns in GROUP functions | ||
---|---|---|---|
Submitted: | 19 Mar 2005 18:24 | Modified: | 28 Apr 2005 23:54 |
Reporter: | Nicolas Moldavsky | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S2 (Serious) |
Version: | 4.1.10a | OS: | Linux (RHEL 3) |
Assigned to: | Sergey Petrunya | CPU Architecture: | Any |
[19 Mar 2005 18:24]
Nicolas Moldavsky
[22 Mar 2005 20:54]
Jim Winstead
This appears to be a problem within group-by processing, so reassigning to the optimizer team. Internally, the Item_sum_max object appears to have its unsigned_flag member set properly. In the case of SUM(a) vs. SUM(a+0), the first is set to a type of MYSQL_TYPE_LONG, and the second to MYSQL_TYPE_LONGLONG.
[18 Apr 2005 3:22]
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/24096
[27 Apr 2005 18:40]
Sergey Petrunya
Approved by Sergei
[28 Apr 2005 17:12]
Sergey Petrunya
Pushed into 4.1.12 and 5.0.6 trees
[28 Apr 2005 23:54]
Paul DuBois
Noted in 4.1.12, 5.0.6 changelogs.