[MDEV-30594] The incorrect result of the WHERE condition which contains the IN operation between the unsigned double value with the index and the negative value in String type. Created: 2023-02-07 Updated: 2023-11-28 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5.16, 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zeng | Assignee: | Sergei Petrunia |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
In the WHERE condition of the query statement, the IN operation between the unsigned double value with the index and the negative value in String type is incorrect. As a result, the query result is incorrect.
As the (c2 IN ('-1758183929') is 0, the condition of the WHERE statement should be wrong as well. The result should be an empty set. |
| Comments |
| Comment by Alice Sherepa [ 2023-02-08 ] | |||||||||||||||||||||||||
|
Thanks! I repeated on 10.3-10.11 with InnoDB, Myisam/Aria returned correct result.
|