(pipe *ast.SQLPipe)
| 376 | } |
| 377 | |
| 378 | func maybeSQLQueryBody(pipe *ast.SQLPipe) (ast.SQLQueryBody, bool) { |
| 379 | if len(pipe.Body) == 1 { |
| 380 | if op, ok := pipe.Body[0].(*ast.SQLOp); ok { |
| 381 | return op.Body, true |
| 382 | } |
| 383 | } |
| 384 | return nil, false |
| 385 | } |
| 386 | |
| 387 | func applyAlias(sctx *super.Context, alias *ast.TableAlias, t relTable, seq sem.Seq) (sem.Seq, relTable, error) { |
| 388 | if alias == nil || t == badTable { |