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.
()
| 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. |
| 558 | func (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. |
| 567 | func (t *DoltgresType) Equals(otherType sql.Type) bool { |
no outgoing calls
no test coverage detected