A column is qualified with a name that is not a table or alias of the query

tx0/sql:unknown-table-referencerecommendederrorreliability/api-misusedepth fastbug

What it finds

SELECT o.id FROM orders ord: a column is qualified with a name that is neither an alias nor a table of the query or of a query around it, which the database rejects. Code in routines and triggers, where the qualifier may be a record or a package, is left alone.

From the rule's source, unknown_table_reference.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:unknown-table-reference" = "error"

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

tx0 explain tx0/sql:unknown-table-reference shows the same in the terminal. Found a false positive? Report it.