Finalize this Query plan by preparing sub-sources ie we need to rewrite some things into sub-statements - we need to share the join expression across sources
()
| 1218 | // ie we need to rewrite some things into sub-statements |
| 1219 | // - we need to share the join expression across sources |
| 1220 | func (m *SqlSelect) Finalize() error { |
| 1221 | if m.finalized { |
| 1222 | return nil |
| 1223 | } |
| 1224 | m.finalized = true |
| 1225 | if len(m.From) == 0 { |
| 1226 | return nil |
| 1227 | } |
| 1228 | for _, from := range m.From { |
| 1229 | from.Finalize() |
| 1230 | } |
| 1231 | |
| 1232 | return nil |
| 1233 | } |
| 1234 | |
| 1235 | func (m *SqlSelect) UnAliasedColumns() map[string]*Column { |
| 1236 | cols := make(map[string]*Column, len(m.Columns)) |
no outgoing calls