HasSelectInto reports whether sel (or any branch of its set operations) carries an INTO clause.
(sel *ast.SelectStmt)
| 48 | // HasSelectInto reports whether sel (or any branch of its set operations) |
| 49 | // carries an INTO clause. |
| 50 | func HasSelectInto(sel *ast.SelectStmt) bool { |
| 51 | return selectIntoTarget(sel) != nil |
| 52 | } |
| 53 | |
| 54 | // selectIntoTarget returns the INTO target of sel, searching set-operation |
| 55 | // arms — T-SQL attaches INTO to the first arm of a UNION, not the root. |
no test coverage detected