(t relTable, table string)
| 611 | } |
| 612 | |
| 613 | func addTableAlias(t relTable, table string) relTable { |
| 614 | switch t := t.(type) { |
| 615 | case *dynamicTable: |
| 616 | return &dynamicTable{table: table} |
| 617 | case *staticTable: |
| 618 | return &staticTable{ |
| 619 | table: table, |
| 620 | typ: t.typ, |
| 621 | } |
| 622 | default: |
| 623 | // There shouldn't be any other table types. |
| 624 | panic(t) |
| 625 | } |
| 626 | } |