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