You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The third SELECT returns an empty result, which is surprising, given that the result of second query is TRUE. The value of the NULLIF expression is TRUE, and thus the third query should return the whole table.
Steps to Reproduce
CREATETABLEt0(c0 INTEGER);
INSERT INTO t0(c0) VALUES (NULL);
SELECT*FROM t0; -- NULLSELECT NULLIF(2, c0)!=1FROM t0; -- TRUESELECT*FROM t0 WHERE NULLIF(2, c0)!=1;
Activity