WithAttTypMod returns a copy of the type with attTypMod defined with given value. This function should be used to set attTypMod only, as it creates a copy of the type to avoid updating the original type.
(tm int32)
| 1065 | // to set attTypMod only, as it creates a copy of the type |
| 1066 | // to avoid updating the original type. |
| 1067 | func (t *DoltgresType) WithAttTypMod(tm int32) *DoltgresType { |
| 1068 | newDt := *t |
| 1069 | newDt.attTypMod = tm |
| 1070 | return &newDt |
| 1071 | } |
| 1072 | |
| 1073 | // Zero implements the types.ExtendedType interface. |
| 1074 | func (t *DoltgresType) Zero() interface{} { |
no outgoing calls
no test coverage detected