[MDEV-30589] The negative value shift operations within the WHERE statement results in the incorrect query result. Created: 2023-02-07 Updated: 2023-11-28 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.5.16 |
| Fix Version/s: | 10.5, 10.6, 10.11 |
| Type: | Bug | Priority: | Major |
| Reporter: | Zeng | Assignee: | Rucha Deodhar |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When the integer column in the WHERE statement is compared with the negative integer (after the shift operation, it overflows to the positive maximum value), the processing result of the positive boundary value is incorrect. As a result, the query result is incorrect. For example, the following SQL statement,
we miss one query result (8388607) when the condition is in the WHERE statement. |