MCPcopy Create free account
hub / github.com/bytebase/bytebase / HasSelectInto

Function HasSelectInto

backend/plugin/parser/tsql/query.go:50–52  ·  view source on GitHub ↗

HasSelectInto reports whether sel (or any branch of its set operations) carries an INTO clause.

(sel *ast.SelectStmt)

Source from the content-addressed store, hash-verified

48// HasSelectInto reports whether sel (or any branch of its set operations)
49// carries an INTO clause.
50func 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.

Callers 1

isReadOnlySelectFunction · 0.85

Calls 1

selectIntoTargetFunction · 0.85

Tested by

no test coverage detected