Tables are joined by commas in FROM
What it finds
FROM a, b WHERE a.id = b.a_id joins in WHERE, where a missing condition silently becomes a cross join and the join is mixed with the filters. JOIN ... ON keeps each condition with its table.
From the rule's source, comma_join.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:
[rules]
"tx0/sql:comma-join" = "warning"To keep one finding, suppress it with a reason: tx0 suppress ID --reason "..." writes the comment for it.
tx0 explain tx0/sql:comma-join shows the same in the terminal. Found a false positive? Report it.