[MDEV-9745] Crash with CASE WHEN TRUE THEN COALESCE(CAST(NULL AS UNSIGNED)) ELSE 4 END Created: 2016-03-16 Updated: 2016-04-20 Resolved: 2016-04-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | OTHER |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 5.5.49 |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | upstream-not-affected | ||
| Issue Links: |
|
||||||||
| Sprint: | 5.5.49 | ||||||||
| Description |
|
This script crashes the server:
The problem is not repeatable in MySQL-5.7.11. It seems it's trying to create a DECIMAL(0,0) column. If I change the script slightly:
it does not crash, but the result is incorrect:
The field data type DECIMAL(1,0) is too small. It should probably be DECIMAL(2,0). MySQL-5.7.11 creates a DECIMAL(2,0) column. |