ISNUMERIC is used, which accepts strings that do not convert to a number

tx0/sql:isnumeric-functionstrictwarningreliability/logicdepth fastbug

What it finds

ISNUMERIC returns 1 for strings that no numeric type accepts, such as '$', '.', '1e5' or '-', so a conversion it approved can still fail. TRY_CONVERT or TRY_CAST to the type needed answers the real question.

From the rule's source, isnumeric_function.rs.

Turn it on, off or suppress it

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

tx0.toml
[rules]
"tx0/sql:isnumeric-function" = "warning"

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

tx0 explain tx0/sql:isnumeric-function shows the same in the terminal. Found a false positive? Report it.