fn build_select(
fields: &[RecordField],
names: &mut StubNames<'_>,
statements: &mut Vec<String>,
) -> StringExpand description
A SELECT whose output columns are exactly fields.
Appends the helper tables it needs to statements, always before the
statement that will reference them.