A deprecated large object type such as text, image or LONG is used

tx0/sql:deprecated-large-typestrictwarningreliability/api-misusedepth fastmaintainability

What it finds

SQL Server's text, ntext and image are deprecated: most string functions do not take them, and a later version will remove them. varchar(max), nvarchar(max) and varbinary(max) replace them. Oracle's LONG and LONG RAW are deprecated in the same way, in favor of CLOB and BLOB.

From the rule's source, deprecated_large_type.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:deprecated-large-type" = "warning"

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

tx0 explain tx0/sql:deprecated-large-type shows the same in the terminal. Found a false positive? Report it.