[MDEV-21032] Index causes incorrect result when comparing float-point number with INT Created: 2019-11-11 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.4.11, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Manuel Rigger | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Ubuntu 19.04 |
||
| Issue Links: |
|
||||
| Description |
|
Hi everyone, On the latest trunk version (0308de9), I could observe a bug, as demonstrated by the following test case:
Only when the index is created does MariaDB compute an incorrect result set, containing the row. As demonstrated below, the expression should evaluate to FALSE:
|
| Comments |
| Comment by Alice Sherepa [ 2019-11-14 ] | |||||||||||||||
|
Thanks! I repeated on MariaDB 5.5-10.4, Mysql 5.6-5.7, works as expected on Mysql 8.0.16
|