(e ast.Expr)
| 686 | } |
| 687 | |
| 688 | func isOrdinal(e ast.Expr) (int, bool) { |
| 689 | if e, ok := e.(*ast.Primitive); ok && e.Type == "int64" { |
| 690 | colno, err := strconv.Atoi(e.Text) |
| 691 | if err != nil { |
| 692 | panic(err) |
| 693 | } |
| 694 | return colno, true |
| 695 | } |
| 696 | return -1, false |
| 697 | } |
| 698 | |
| 699 | func (t *translator) resolveOrdinalOuter(ts tableScope, n ast.Node, prefix string, col int) sem.Expr { |
| 700 | switch ts := ts.(type) { |