[MDEV-8871] Wrong result for CREATE TABLE .. SELECT LEAST(unsigned_column,unsigned_column) Created: 2015-09-30 Updated: 2017-04-15 Resolved: 2015-09-30 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1 |
| Fix Version/s: | 10.1.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||
| Sprint: | 10.1.8-3, 10.1.8-4 | ||||||||
| Description |
|
If I run this query:
it returns a correct result set:
Now if I do CREATE TABLE .. SELECT with the same expression:
it returns a warning:
Now this script:
reveals that it erroneously created a SIGNED INT column, and the value was truncated to maximum SIGNED INT range:
|
| Comments |
| Comment by Alexander Barkov [ 2015-09-30 ] |
|
Repeatable with MySQL-5.7.8 |