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

Struct Subquery

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

Subquery represents a subquery.

Source from the content-addressed store, hash-verified

944
945// Subquery represents a subquery.
946type Subquery struct {
947 Select SelectStatement
948 Exists bool
949
950 // Idx is a query-unique index for the subquery.
951 // Subqueries are 1-indexed to ensure that the default
952 // value 0 can be used to detect uninitialized subqueries.
953 Idx int
954
955 typeAnnotation
956}
957
958// SetType forces the type annotation on the Subquery node.
959func (node *Subquery) SetType(t *types.T) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected