v.20.4New Feature
Consider NULL Equal to NULL in IN Operator with transform_null_in Option
ConsiderNULLto be equal toNULLinINoperator, if the optiontransform_null_inis set. #10085 (achimbab)
Why it matters
By default,NULL comparisons using the IN operator do not consider two NULL values as equal. This feature addresses the problem of unexpected behavior when NULL values are involved in IN expressions, allowing users to treat NULL as equal to NULL. It provides more intuitive and flexible handling of NULL values in queries.How to use it
To enable this feature, set the settingtransform_null_in to 1. For example, use the query:sql<br>SET transform_null_in = 1<br>