[MDEV-15262] Wrong results for SELECT..WHERE non_indexed_datetime_column=indexed_time_column Created: 2018-02-09 Updated: 2018-02-09 Resolved: 2018-02-09 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Optimizer, Temporal Types |
| Affects Version/s: | 10.0, 10.1, 10.2, 10.3 |
| Fix Version/s: | 10.0.35 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
I create and populate two tables as follows:
Now I run this query with IGNORE INDEX, it returns four rows as expected:
Now I run the same query but with FORCE INDEX, it erroneously returns three rows:
|