ClickHouse/tests/queries/0_stateless/01374_if_nullable_filimonov.sql

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
252 B
MySQL
Raw Normal View History

2020-07-06 02:57:58 +00:00
SELECT
UserID,
UserID = 0,
if(UserID = 0, 'delete', 'leave')
FROM VALUES('UserID Nullable(UInt8)', (2), (0), (NULL));
2020-07-06 02:59:44 +00:00
SELECT '---';
SELECT arrayJoin([0, 1, 3, NULL]) AS x, x = 0, if(x = 0, 'Definitely x = 0', 'We cannot say that x = 0');