[MDEV-14933] Wrong result caused by UNSIGNED column and UNION ALL Created: 2018-01-12 Updated: 2018-01-16 Resolved: 2018-01-16 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data types |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2.12, 10.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Pavel Cibulka | Assignee: | Alexander Barkov |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | upstream | ||
| Issue Links: |
|
||||||||
| Description |
|
SELECT returns wrong data when UNION ALL is used and first table has unsigned column and second table has signed data in this column. Example:
result:
Second row has 0 in second column, it should have -5. |
| Comments |
| Comment by Alice Sherepa [ 2018-01-15 ] | ||||
|
Thanks for the report!
| ||||
| Comment by Alexander Barkov [ 2018-01-16 ] | ||||
|
Fixing in versions prior to 10.3 is not possible. This was fixed in 10.3 in a commit for |