Bug #99120 | Incorrect result for query that uses an AND operator on floats | ||
---|---|---|---|
Submitted: | 31 Mar 2020 8:48 | Modified: | 1 Apr 2020 7:40 |
Reporter: | Manuel Rigger | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 5.5, 5.6, 5.6.47, 5.7.29 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[31 Mar 2020 8:48]
Manuel Rigger
[31 Mar 2020 10:04]
MySQL Verification Team
Hello Manuel Rigger, Thank you for the report. regards, Umesh
[1 Apr 2020 7:40]
Roy Lyseng
Posted by developer: This problem is fixed in MySQL 8.0 by rewriting the predicates to complete predicates. Workaround for previous releases is to do the same rewrite, e.g: SELECT * FROM t0 WHERE 1<>0 AND 0.4<>0;