[MDEV-30710] Incorrect operator when comparing large unsigned integers. Created: 2023-02-22 Updated: 2023-07-25 Resolved: 2023-07-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Server |
| Affects Version/s: | 10.5.16 |
| Fix Version/s: | 10.5.22, 10.6.15, 10.9.8, 10.10.6, 10.11.5, 11.0.3, 11.1.2, 11.2.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | guozhentang | Assignee: | Rex Johnston |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
centos 7.6 |
||
| Attachments: |
|
| Description |
|
The expected result is that the two query statements have the same query result, but in fact, the first query result is 1, and the second query result is 2 |
| Comments |
| Comment by guozhentang [ 2023-02-22 ] | ||||||
| Comment by Sergei Golubchik [ 2023-03-25 ] | ||||||
|
smaller test case:
| ||||||
| Comment by Rex Johnston [ 2023-07-18 ] | ||||||
|
This started with commit eb483c5181ab430877c135c16224284cfc517b3d, range scan updates exposed an inconsistency. | ||||||
| Comment by Alexander Barkov [ 2023-07-19 ] | ||||||
|
Hello Johnston, I have small suggestions for the patch: This condition:
seems to be redundant from a glance. Shouldn't this be enough:
? Also, please put both queries into the test:
to demonstrate that the result is equal with and without the index. | ||||||
| Comment by Alexander Barkov [ 2023-07-19 ] | ||||||
|
Hello Johnston, |