A join other than a cross or natural join has no ON or USING condition
What it finds
a LEFT JOIN b without ON or USING: an outer join needs a condition, and the databases reject one without it. An inner JOIN without a condition is rejected too, except by MySQL, which takes it as a cross join: CROSS JOIN says that on purpose.
From the rule's source, join_without_condition.rs.
Turn it on, off or suppress it
The rule runs in every tier. To turn it off for a project, set its level in tx0.toml:
[rules]
"tx0/sql:join-without-condition" = "off"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:join-without-condition shows the same in the terminal. Found a false positive? Report it.