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

Function MakeSemaContext

postgres/parser/sem/tree/type_check.go:201–203  ·  view source on GitHub ↗

MakeSemaContext initializes a simple SemaContext suitable for "lightweight" type checking such as the one performed for default expressions. Note: if queries with placeholders are going to be used, SemaContext.Placeholders.Init must be called separately.

()

Source from the content-addressed store, hash-verified

199// Note: if queries with placeholders are going to be used,
200// SemaContext.Placeholders.Init must be called separately.
201func MakeSemaContext() SemaContext {
202 return SemaContext{}
203}
204
205// isUnresolvedPlaceholder provides a nil-safe method to determine whether expr is an
206// unresolved placeholder.

Callers 1

typeCheckOverloadedExprsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected