Bug #97197 | The decimal type result calculated by division gets truncated in temporary table | ||
---|---|---|---|
Submitted: | 11 Oct 2019 7:49 | Modified: | 11 Oct 2019 12:26 |
Reporter: | Hope Lee (OCA) | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 8.0.16 | OS: | CentOS |
Assigned to: | CPU Architecture: | Any | |
Tags: | decimal, division, precision, scale |
[11 Oct 2019 7:49]
Hope Lee
[11 Oct 2019 12:26]
MySQL Verification Team
Hello Mr. Lee, Thank you for your bug report. However, this is not a bug. If you read our Reference Manual, you will find it documented that the final result is constrained by the number of digits in the fixed point domain. Your definition can not accommodate 14 (fourteen) digits and hence the truncation. Not a bug.
[12 Oct 2019 10:32]
Øystein Grøvlen
Hi Sinisa! So it is by design that SELECT and SELECT DISTINCT return different result?
[14 Oct 2019 11:54]
MySQL Verification Team
Hi Oystein, Thank you for your comment. You know as well as I do, that it is not so by design. Hence, that could be a design flaw, which could make a feature request.