[MDEV-20304] Inconsistency in to-integer conversion in DOUBLE UNSIGNED vs DECIMAL UNSIGNED Created: 2019-08-09 Updated: 2019-08-09 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Notice, the result for `b << 0` is probably wrong. This happens because Field_double::val_int() does not take into accoung the UNSIGNED flag, while Field_new_decimal does. Note, this problem is repeatable with any function calling val_int(). The left shift operation is used only for demonstration purposes. |