MaxTextResponseByteLength implements the types.ExtendedType interface.
(ctx *sql.Context)
| 810 | |
| 811 | // MaxTextResponseByteLength implements the types.ExtendedType interface. |
| 812 | func (t *DoltgresType) MaxTextResponseByteLength(ctx *sql.Context) uint32 { |
| 813 | if t.ID == VarChar.ID { |
| 814 | return math.MaxUint32 |
| 815 | } else if t.TypLength == -1 { |
| 816 | return math.MaxUint32 |
| 817 | } else { |
| 818 | return uint32(t.TypLength) |
| 819 | } |
| 820 | } |
| 821 | |
| 822 | // ModInFuncName returns the name that would be displayed in pg_type for the `typmodin` field. |
| 823 | func (t *DoltgresType) ModInFuncName() string { |
no outgoing calls
no test coverage detected