pub fn subquery_columns(
select: &BoundSelect,
names: &[Vec<u8>],
) -> Vec<ColumnInfo>Expand description
Builds the table a nested query’s rows are read through.
The columns are the block’s result columns. Their affinity and collation come from the expressions behind them, so a comparison against a subquery column applies the rules it would have applied one level down; a column with no affinity of its own gets none, which is what SQLite does for an expression that is not a bare column or a cast. Returns the columns a nested query’s result presents to a reader.
Public because a write to a view needs them before there is a FROM term to hang them on: the view’s catalog entry carries no column list at all.