(item *ast.SQLFromItem)
| 821 | } |
| 822 | |
| 823 | func (c *canon) sqlFromItem(item *ast.SQLFromItem) { |
| 824 | switch input := item.Input.(type) { |
| 825 | case *ast.FromItem: |
| 826 | c.fromItem(input) |
| 827 | case *ast.SQLPipe: |
| 828 | c.sqlPipe(input) |
| 829 | default: |
| 830 | panic(input) |
| 831 | } |
| 832 | if item.Alias != nil { |
| 833 | c.tableAlias(item.Alias) |
| 834 | } |
| 835 | } |
| 836 | |
| 837 | func (c *canon) tableAlias(alias *ast.TableAlias) { |
| 838 | c.write(" as %s", sup.QuotedName(alias.Name)) |
no test coverage detected