[MDEV-8257] Erroneous "Impossible where" when mixing decimal comparison and LIKE Created: 2015-06-01 Updated: 2015-06-09 Resolved: 2015-06-02 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.1.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This script:
returns one row in both SELECT queries. Now if I join the two conditions into a single query:
it returns empty set. EXPLAIN tells that where condition is Impossible:
The above is wrong. |