[MDEV-8810] Warnings for EDOM vs truncation in val_int, val_real, val_decimal Created: 2015-09-17 Updated: 2020-06-01 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 5.5, 10.0, 10.1, 10.3.4, 10.4, 10.5 |
| Fix Version/s: | 10.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
When a string value is insterted into an INT, DOUBLE or DECIMAL column, it send different warnings in case of EDOM errors (when they could not find any digits) and truncation errors:
If I force implicit string-to-number conversion the other way around:
it does not distinguish between EDOM and truncation:
Functions and literals also do not distinguish between EDOM and truncation:
In case of EDOM the warning tells about truncation, which is not true. |