[MDEV-10309] COALESCE(12345678900) makes a column of a wrong type and truncates the data Created: 2016-06-29 Updated: 2017-06-19 Resolved: 2017-05-27 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 10.1, 10.2 |
| Fix Version/s: | 10.3.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||||||
| Description |
|
The expected result to create a BIGINT column for both expressions, and return 12345678900 for both columns. |
| Comments |
| Comment by Alexander Barkov [ 2016-06-30 ] | ||||||||||||||||
|
The same problem is repeatable with smaller numbers:
Notice, the data type and the value for c2 is wrong. | ||||||||||||||||
| Comment by Alexander Barkov [ 2017-05-27 ] | ||||||||||||||||
|
Previous fixes in Type_handler Pushed into bb-10.2-ext. |