1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-11-11 01:42:22 +03:00

Implement the IIF(x,y,z) SQL function that is short-hand for

"CASE WHEN x THEN y ELSE z END".  For compatibility with SQL Server.

FossilOrigin-Name: fce173cd211b15867369b6a54fad48168352fc83981a722ce98e57299b88608a
This commit is contained in:
drh
2020-05-13 18:03:34 +00:00
parent ffe421c76a
commit 3c0e606bba
6 changed files with 43 additions and 34 deletions

View File

@@ -1785,6 +1785,7 @@ struct FuncDestructor {
#define INLINEFUNC_expr_implies_expr 2
#define INLINEFUNC_expr_compare 3
#define INLINEFUNC_affinity 4
#define INLINEFUNC_iif 5
#define INLINEFUNC_unlikely 99 /* Default case */
/*