[MDEV-657] LP:873142 - GREATEST() does not always return same signness of argument types. Created: 2011-10-13 Updated: 2015-10-01 Resolved: 2015-10-01 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.1.67, 5.2.14, 5.3.12, 5.5.36, 10.0.9 |
| Fix Version/s: | 10.1.8 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Antony T Curtis (Inactive) | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | Launchpad, upstream | ||
| Attachments: |
|
| Sprint: | 10.1.8-4 |
| Description |
|
Description: Windows 32bit and Windows 64bit: Others: Workaround would be to use IF(x>y,x,y) function instead. How to repeat:
|
| Comments |
| Comment by Antony T Curtis (Inactive) [ 2011-10-13 ] | ||||||||||||||||
|
Win32/Win64: GREATEST() does not always return same signness of argument types. To reproduce this bug, create this simple table. DROP TABLE `cma`; – Execute the following statement twice INSERT INTO cma A workaround may be to use CAST(GREATEST(...) AS UNSIGNED) . | ||||||||||||||||
| Comment by Rasmus Johansson (Inactive) [ 2011-10-13 ] | ||||||||||||||||
|
Launchpad bug id: 873142 | ||||||||||||||||
| Comment by Alexander Barkov [ 2015-10-01 ] | ||||||||||||||||
|
A script that demonstrates the problem:
returns a warning:
and this result set:
The expected result is to produce not warnings and return 13836376518955650385. | ||||||||||||||||
| Comment by Alexander Barkov [ 2015-10-01 ] | ||||||||||||||||
|
Repeatable in MySQL-5.7.8 |