[MDEV-8897] Integer type columns silently truncate fractional digits Created: 2015-10-05 Updated: 2018-06-13 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.3.4, 10.2 |
| Fix Version/s: | 10.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | upstream | ||
| Description |
|
This script:
produces no warnings or notes though truncation happens. The DECIMAL data type in the same scenario does produce a note:
CAST from DECIMAL to INT on SELECT also does not produce warnings:
|
| Comments |
| Comment by Alexander Barkov [ 2015-10-05 ] |
|
Repeatable in MySQL-5.7 |