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

Function checkForDomainType

server/expression/assignment_cast.go:101–106  ·  view source on GitHub ↗

checkForDomainType returns the underlying type if the given type is a domain type. Casting always applies to the base type.

(t *pgtypes.DoltgresType)

Source from the content-addressed store, hash-verified

99// checkForDomainType returns the underlying type if the given type is a domain type. Casting always applies to the base
100// type.
101func checkForDomainType(t *pgtypes.DoltgresType) *pgtypes.DoltgresType {
102 if t.TypType == pgtypes.TypeType_Domain {
103 t = t.DomainUnderlyingBaseType()
104 }
105 return t
106}

Callers 4

NewExplicitCastFunction · 0.85
EvalMethod · 0.85
NewAssignmentCastFunction · 0.85
NewImplicitCastFunction · 0.85

Calls 1

Tested by

no test coverage detected