A fallback function such as COALESCE is given NULL as a fallback

tx0/sql:coalesce-null-argumentrecommendedwarningreliability/null-safetydepth fastbug

What it finds

COALESCE(x, NULL), NVL(x, NULL), ISNULL(x, NULL), IFNULL(x, NULL): falling back to NULL is no fallback, so the argument does nothing, and another value was probably meant.

From the rule's source, coalesce_null_argument.rs.

Turn it on, off or suppress it

The rule runs from the recommended tier up. To turn it on in a lower tier, give it a level in tx0.toml:

tx0.toml
[rules]
"tx0/sql:coalesce-null-argument" = "warning"

To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.

tx0 explain tx0/sql:coalesce-null-argument shows the same in the terminal. Found a false positive? Report it.