[MDEV-7147] CASE returns unexpected result with a YEAR(2) field Created: 2014-11-20 Updated: 2022-12-15 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6 |
| Fix Version/s: | 10.1, 10.3 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
returns
The result for CASE looks wrong. It should return NULL, similar to what NULLIF does. Note, if I slightly rewrite CASE, it works fine:
|