Bug #31154 | field.h:1649: virtual int Field_bit::cmp(const uchar*, const uchar*): Assertion | ||
---|---|---|---|
Submitted: | 23 Sep 2007 12:50 | Modified: | 24 Oct 2007 19:35 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Data Types | Severity: | S2 (Serious) |
Version: | 5.0.48-debug, 5.1.23-debug | OS: | Any |
Assigned to: | Ramil Kalimullin | CPU Architecture: | Any |
Tags: | assert, bit, crash, group_concat |
[23 Sep 2007 12:50]
Shane Bester
[11 Oct 2007 12:20]
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/35345 ChangeSet@1.2531, 2007-10-11 17:20:34+05:00, ramil@mysql.com +3 -0 Fix for bug #31154: field.h:1649: virtual int Field_bit::cmp(const uchar*, const uchar*): Assertion Problem: GROUP_CONCAT(DISTINCT BIT_FIELD...) uses a tree to store keys; which are constructed using a temporary table fields, see Item_func_group_concat::setup(). As a) we don't store null bits in the tree where the bit fields store parts of their data and b) there's no method to properly compare two table records we've got problem. Fix: convert BIT fields to INT in the temporary table used.
[18 Oct 2007 21:34]
Bugs System
Pushed into 5.1.23-beta
[18 Oct 2007 21:37]
Bugs System
Pushed into 5.0.52
[24 Oct 2007 19:35]
Paul DuBois
Noted in 5.0.52, 5.1.23 changelogs. Use of GROUP_CONCAT(DISTINCT bit_column) caused an assertion failure.