[MDEV-8694] Wrong result for SELECT..WHERE a NOT LIKE 'a ' AND a='a' Created: 2015-08-28 Updated: 2015-09-02 Resolved: 2015-08-28 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.1.6, 5.5, 10.0 |
| 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:
Now if I make the condition even stronger:
it erroneously returns 2 rows:
The problem happens in equal fields propagation.
gets rewritten to
then LIKE gets removed from the condition. |