Added yet another test just in case

This commit is contained in:
Alexey Milovidov 2020-07-06 05:59:44 +03:00
parent 4508876008
commit d8ae9c571c
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2 0 leave
0 1 delete
\N \N leave
---
0 1 Definitely x = 0
1 0 We cannot say that x = 0
3 0 We cannot say that x = 0
\N \N We cannot say that x = 0

View File

@ -3,3 +3,7 @@ SELECT
UserID = 0,
if(UserID = 0, 'delete', 'leave')
FROM VALUES('UserID Nullable(UInt8)', (2), (0), (NULL));
SELECT '---';
SELECT arrayJoin([0, 1, 3, NULL]) AS x, x = 0, if(x = 0, 'Definitely x = 0', 'We cannot say that x = 0');