MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Subquery

Struct Subquery

pkg/sql/sem/tree/expr.go:954–964  ·  view source on GitHub ↗

Subquery represents a subquery.

Source from the content-addressed store, hash-verified

952
953// Subquery represents a subquery.
954type Subquery struct {
955 Select SelectStatement
956 Exists bool
957
958 // Idx is a query-unique index for the subquery.
959 // Subqueries are 1-indexed to ensure that the default
960 // value 0 can be used to detect uninitialized subqueries.
961 Idx int
962
963 typeAnnotation
964}
965
966// ResolvedType implements the TypedExpr interface.
967func (node *Subquery) ResolvedType() *types.T {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected