Skip to main content

refuse_correlated_derived

Function refuse_correlated_derived 

Source
pub fn refuse_correlated_derived(
    err: SqlError,
    factor: &TableFactor,
    from_names: &[String],
) -> SqlError
Expand description

The refusal for a derived table without LATERAL that refers to another relation of the same FROM clause.

The body is planned on its own, so such a reference fails to resolve. PostgreSQL refuses it and points to LATERAL, and so does this. Any other error passes through unchanged.