[MDEV-7005] NULLIF does not work as documented Created: 2014-11-01 Updated: 2014-12-01 Resolved: 2014-11-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Temporal Types |
| Affects Version/s: | 5.5.40, 10.0.14 |
| Fix Version/s: | 10.1.2 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Alexander Barkov | Assignee: | Alexander Barkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The manual at https://mariadb.com/kb/en/mariadb/documentation/functions-and-operators/control-flow-functions/nullif/ says that NULLIF(expr1,expr2) is the same as CASE WHEN expr1 = expr2 THEN NULL ELSE expr1 END.
returns:
Notice, NULLIF erroneously created a VARCHAR column, while CASE correctly created a TIME column. |