(op *ast.SQLOrderBy, scope relScope, seq sem.Seq, inType super.Type)
| 519 | } |
| 520 | |
| 521 | func (t *translator) orderBy(op *ast.SQLOrderBy, scope relScope, seq sem.Seq, inType super.Type) sem.Seq { |
| 522 | save := t.scope.sql |
| 523 | t.scope.sql = scope |
| 524 | defer func() { |
| 525 | t.scope.sql = save |
| 526 | }() |
| 527 | var exprs []sem.SortExpr |
| 528 | for _, e := range op.Exprs { |
| 529 | exprs = append(exprs, t.sortExpr(scope, e, false, inType)) |
| 530 | } |
| 531 | return append(seq, &sem.SortOp{Node: op, Exprs: exprs}) |
| 532 | } |
| 533 | |
| 534 | func (t *translator) sqlWith(with *ast.SQLWith) map[string]*ast.SQLCTE { |
| 535 | if with.Recursive { |