Open parsonsmatt opened 2 years ago
It's a bit of a footgun to write table ^. SomeField ==. val Nothing, since this expression is always equivalent to NULL in SQL due to trivalued logic.
table ^. SomeField ==. val Nothing
NULL
We could instead check (somehow) if we're doing a comparison to a Nothing and change the expression to IS NULL or IS NOT NULL.
Nothing
IS NULL
IS NOT NULL
we could maybe do
:joy: I was going to make this a beginner-friendly ticket and coach/guide folks through it! But that's fine too 😄
whoops
You probably meant !=. instead of /=..
!=.
/=.
It's a bit of a footgun to write
table ^. SomeField ==. val Nothing
, since this expression is always equivalent toNULL
in SQL due to trivalued logic.We could instead check (somehow) if we're doing a comparison to a
Nothing
and change the expression toIS NULL
orIS NOT NULL
.