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

Function hasOmniIntoClause

backend/plugin/parser/pg/query_type.go:104–106  ·  view source on GitHub ↗

hasOmniIntoClause checks if a SelectStmt has an INTO clause (SELECT INTO).

(n *ast.SelectStmt)

Source from the content-addressed store, hash-verified

102
103// hasOmniIntoClause checks if a SelectStmt has an INTO clause (SELECT INTO).
104func hasOmniIntoClause(n *ast.SelectStmt) bool {
105 return omniIntoClause(n) != nil
106}
107
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.

Callers 3

isWriteSelectFunction · 0.85
classifyQueryTypeFunction · 0.85
classifyExplainedQueryFunction · 0.85

Calls 1

omniIntoClauseFunction · 0.85

Tested by

no test coverage detected