Bug #52171 | distinct aggregates on unsigned decimal fields trigger assertions | ||
---|---|---|---|
Submitted: | 18 Mar 2010 10:05 | Modified: | 30 Mar 2011 17:01 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S1 (Critical) |
Version: | 5.6.99-m4-debug | OS: | Any |
Assigned to: | Mats Kindahl | CPU Architecture: | Any |
Tags: | assertion, decimal, regression |
[18 Mar 2010 10:05]
Shane Bester
[18 Mar 2010 10:25]
Sveta Smirnova
Thank you for the report. Verified as described.
[28 Mar 2010 12:02]
Guilhem Bichot
regression source (found by bzrfind and confirmed manually): Mats Kindahl 2009-12-14 revision-id:mats@sun.com-20091214110455-g6lw2yfiu14prdnu WL#5151: Conversion between different types when replicating
[20 Sep 2010 22:00]
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/118648 3086 Mats Kindahl 2010-09-20 BUG#52171: distinct aggregates on unsigned decimal fields trigger assertions When creating virtual tables, make_field() will create a Field_new_decimal, with FIELDFLAG_DECIMAL set, which unfortunately means that the field always is considered signed, which in turns offsets the computation of precision from length. This patch solves this by not setting the FIELDFLAG_DECIMAL, which instead will be set by make_field() if the field is indicated as unsigned.
[23 Sep 2010 18:35]
Mats Kindahl
Patch queued to mysql-5.5-bugfixing, mysql-trunk-bugfixing, and mysql-next-mr-bugfixing.
[30 Mar 2011 17:01]
Paul DuBois
Noted in 5.6.2 changelog. DISTINCT aggregates on DECIMAL UNSIGNED fields could trigger an assertion. CHANGESET - http://lists.mysql.com/commits/118648