BaseType returns a base type of given array or vector type. If this type does not have base type, it returns itself.
()
| 164 | // BaseType returns a base type of given array or vector type. |
| 165 | // If this type does not have base type, it returns itself. |
| 166 | func (t *DoltgresType) BaseType() *DoltgresType { |
| 167 | if t.Elem.ID == id.NullType { |
| 168 | return t |
| 169 | } |
| 170 | return t.Elem.WithAttTypMod(t.attTypMod) |
| 171 | } |
| 172 | |
| 173 | // CharacterSet implements the sql.StringType interface. |
| 174 | func (t *DoltgresType) CharacterSet() sql.CharacterSetID { |