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

Method DomainUnderlyingBaseType

server/types/type.go:558–564  ·  view source on GitHub ↗

DomainUnderlyingBaseType returns an underlying base type of this domain type. It can be a nested domain type, so it recursively searches for a valid base type. It is not valid to call this on a non-domain type.

()

Source from the content-addressed store, hash-verified

556// It can be a nested domain type, so it recursively searches for a valid base type.
557// It is not valid to call this on a non-domain type.
558func (t *DoltgresType) DomainUnderlyingBaseType() *DoltgresType {
559 if t.BaseTypeType.TypType == TypeType_Domain {
560 return t.BaseTypeType.DomainUnderlyingBaseType()
561 } else {
562 return t.BaseTypeType
563 }
564}
565
566// Equals implements the types.ExtendedType interface.
567func (t *DoltgresType) Equals(otherType sql.Type) bool {

Callers 2

analyzeParametersMethod · 0.80
checkForDomainTypeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected