[MDEV-25808] PREPARE/EXECUTE makes signed integer out of unsigned Created: 2021-05-28 Updated: 2021-07-24 Resolved: 2021-07-24 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Prepared Statements, Storage Engine - Spider |
| Affects Version/s: | 10.4.13, 10.3.29, 10.5.10, 10.6.1 |
| Fix Version/s: | 10.3.31, 10.4.21, 10.5.12, 10.6.4 |
| Type: | Bug | Priority: | Major |
| Reporter: | Yongxin Xu | Assignee: | Sergei Golubchik |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | bug, spider | ||
| Environment: |
ALL |
||
| Description |
|
how to repeat: On Spider:
|
| Comments |
| Comment by Sergei Golubchik [ 2021-07-24 ] | ||||
|
The reason here is that Item_param doesn't take the unsigned-ness of the value into account in a string context. Here's a simpler test case:
Same bug in the real context:
|