NewCharType returns BpChar type with typmod set.
(length int32)
| 61 | |
| 62 | // NewCharType returns BpChar type with typmod set. |
| 63 | func NewCharType(length int32) (*DoltgresType, error) { |
| 64 | typmod, err := GetTypModFromCharLength("char", length) |
| 65 | if err != nil { |
| 66 | return nil, err |
| 67 | } |
| 68 | newType := *BpChar.WithAttTypMod(typmod) |
| 69 | return &newType, nil |
| 70 | } |
| 71 | |
| 72 | // serializeTypeBpChar handles serialization from the standard representation to our serialized representation that is |
| 73 | // written in Dolt. |
nothing calls this directly
no test coverage detected