omniIntoClause returns the INTO clause of n, searching set-operation arms (UNION/INTERSECT/EXCEPT) — the parser attaches INTO to the first arm, not the root.
(n *ast.SelectStmt)
| 108 | // omniIntoClause returns the INTO clause of n, searching set-operation arms |
| 109 | // (UNION/INTERSECT/EXCEPT) — the parser attaches INTO to the first arm, not the root. |
| 110 | func omniIntoClause(n *ast.SelectStmt) *ast.IntoClause { |
| 111 | if n == nil { |
| 112 | return nil |
| 113 | } |
| 114 | if n.IntoClause != nil { |
| 115 | return n.IntoClause |
| 116 | } |
| 117 | if c := omniIntoClause(n.Larg); c != nil { |
| 118 | return c |
| 119 | } |
| 120 | return omniIntoClause(n.Rarg) |
| 121 | } |
| 122 | |
| 123 | // isExplainAnalyzeOmni checks if an ExplainStmt has the ANALYZE option. |
| 124 | func isExplainAnalyzeOmni(n *ast.ExplainStmt) bool { |
no outgoing calls
no test coverage detected