Bug #4620 | != or <> returns rows that DO match when I add fields together | ||
---|---|---|---|
Submitted: | 19 Jul 2004 6:32 | Modified: | 22 Jul 2004 15:38 |
Reporter: | Steffan Packer | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | 4.0.20 | OS: | Windows (Windows XP professional) |
Assigned to: | CPU Architecture: | Any |
[19 Jul 2004 6:32]
Steffan Packer
[22 Jul 2004 15:38]
Alexander Keremidarski
Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.mysql.com/documentation/ and the instructions on how to report a bug at http://bugs.mysql.com/how-to-report.php Additional info: Calculations with DECIMAL columns are done with floating point aritmetic so all problems with floating point accuracy apply in your case. WHERE (HPCurrExpo+CSCurrExpo+OLCurrExpo+FLCurrExpo) != CurrentExposure The result of (HPCurrExpo+CSCurrExpo+OLCurrExpo+FLCurrExpo) is of type DOUBLE http://dev.mysql.com/doc/mysql/en/Problems_with_float.html