Bug #95983 | Query involving &, <, and AND operators computes incorrect result | ||
---|---|---|---|
Submitted: | 25 Jun 2019 16:40 | Modified: | 20 Aug 2019 2:40 |
Reporter: | Manuel Rigger | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.16, 5.7.26, 5.6.44 | OS: | Ubuntu |
Assigned to: | CPU Architecture: | x86 |
[25 Jun 2019 16:40]
Manuel Rigger
[26 Jun 2019 5:08]
MySQL Verification Team
Hello Manuel Rigger, Thank you for the report. regards, Umesh
[16 Jul 2019 13:12]
Sveta Smirnova
This is regression: returns a row in 5.7.25 (tested with Percona Server though)
[5 Aug 2019 19:18]
Oleksandr Peresypkin
The patches attached to https://bugs.mysql.com/bug.php?id=95964 fix this issue as well.
[20 Aug 2019 2:40]
Jon Stephens
Documented fix as follows in the MySQL 8.0.18 changelog: A query using WHERE text_col < (int_col & int_col) AND int_col = -1 failed to return any rows as expected. Closed.