(b *Builder)
| 2656 | } |
| 2657 | |
| 2658 | func (s *Selector) joinSelect(b *Builder) { |
| 2659 | for i, sc := range s.selection { |
| 2660 | if i > 0 { |
| 2661 | b.Comma() |
| 2662 | } |
| 2663 | switch { |
| 2664 | case sc.c != "": |
| 2665 | b.Ident(sc.c) |
| 2666 | case sc.x != nil: |
| 2667 | b.Join(sc.x) |
| 2668 | } |
| 2669 | if sc.as != "" { |
| 2670 | b.WriteString(" AS ") |
| 2671 | b.Ident(sc.as) |
| 2672 | } |
| 2673 | } |
| 2674 | } |
| 2675 | |
| 2676 | // implement the table view interface. |
| 2677 | func (*Selector) view() {} |
no test coverage detected