[MDEV-10307] CAST(11068046444225730969 AS SIGNED) does not return a warning Created: 2016-06-29 Updated: 2019-04-30 Resolved: 2019-04-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.0, 10.1, 10.2, 10.3, 10.4 |
| Fix Version/s: | 10.3.15, 10.4.5 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
This script:
returns
with a warning:
If I now do the other way around:
it returns this result:
but no warning is issued. Expect to get a warning Cast to signed converted positive integer to it's negative complement |
| Comments |
| Comment by Alexander Barkov [ 2016-06-29 ] | |||||||||||||
|
If I now do the same conversion using COLUMN_CREATE/COLUMN_GET:
it correctly returns the result and the warning:
|