MCPcopy Create free account
hub / github.com/dolthub/doltgresql / Subquery

Struct Subquery

postgres/parser/sem/tree/expr.go:1035–1045  ·  view source on GitHub ↗

Subquery represents a subquery.

Source from the content-addressed store, hash-verified

1033
1034// Subquery represents a subquery.
1035type Subquery struct {
1036 Select SelectStatement
1037 Exists bool
1038
1039 // Idx is a query-unique index for the subquery.
1040 // Subqueries are 1-indexed to ensure that the default
1041 // value 0 can be used to detect uninitialized subqueries.
1042 Idx int
1043
1044 typeAnnotation
1045}
1046
1047// SetType forces the type annotation on the Subquery node.
1048func (node *Subquery) SetType(t *types.T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected