Bug #92297 | GROUP_CONCAT doesn't work properly with FLOAT(M,D) fields with value of M digits | ||
---|---|---|---|
Submitted: | 5 Sep 2018 16:29 | Modified: | 6 Sep 2018 7:07 |
Reporter: | Stoil Todorov | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.12, 5.7.23, 5.6.41, 5.5.61 | OS: | Any |
Assigned to: | CPU Architecture: | Any | |
Tags: | D) bug, GROUP_CONCAT and FLOAT(M |
[5 Sep 2018 16:29]
Stoil Todorov
[6 Sep 2018 7:07]
MySQL Verification Team
Hello Stoil Todorov, Thank you for the report! regards, Umesh
[12 Nov 2018 21:51]
Dag Wanvik
Posted by developer: The problem here is the internal assignment of max_length to the Item_func_concat: it gets assigned a value of 11 instead of 12, as a sum of 1 for the first quote, 9 for the float (wrong, when formatted it should be 10), and 1 for the final float, i.e. 11. The number 9 derived all the way from the original specification as FLOAT(9,3).