[MDEV-8695] Wrong result for SELECT..WHERE varchar_column='a' AND CRC32(varchar_column)=3904355907 Created: 2015-08-28 Updated: 2015-09-02 Resolved: 2015-09-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
This script:
returns one row:
If I make the condition even stricter:
it erroneously returns two rows:
This script demonstrates the same problem:
It returns one row:
Now if I make the condition even stricter:
It returns two rows:
A similar problem with trailing spaces:
The first and the second query correctly return one row. The third query erroneously returns no rows. |