Bug #8595 | SUM(IFNULL()) on decimal value causes rounding error | ||
---|---|---|---|
Submitted: | 18 Feb 2005 1:02 | Modified: | 18 Feb 2005 1:11 |
Reporter: | Test Test | Email Updates: | |
Status: | Duplicate | Impact on me: | |
Category: | Connector / J | Severity: | S1 (Critical) |
Version: | 3.1.6 | OS: | Windows (XP / Linux) |
Assigned to: | CPU Architecture: | Any |
[18 Feb 2005 1:02]
Test Test
[18 Feb 2005 1:11]
Mark Matthews
This is a duplicate of BUG#8484 which is fixed for 3.1.7. The reason 1.689999 is the value that the driver is operating on, is because prior to MySQL-5.0.3, there is no true fixed-point decimal type, math operations (such as SUM()), always convert the value to a double, so the value you see is the closest approximation.