[MDEV-15759] Expect "Impossible WHERE" for indexed_int_column=out_of_range_int_constant Created: 2018-04-03 Updated: 2022-05-12 Resolved: 2018-07-19 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types, Optimizer |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
The range optimizer decides to use "ref" search when testing an equality between an indexed integer column and an out-of-range integer constant:
The same happens with the BIT data type:
This is wrong. It should return with "Impossible WHERE". |
| Comments |
| Comment by Alexander Barkov [ 2018-04-03 ] |
|
Closed it a mistake. Reopening. |