FormatValueWithContext returns the postgres output representation of |val|, using |ctx| for any session-scoped state the type's output function needs.
(ctx *sql.Context, val any)
| 583 | // |val|, using |ctx| for any session-scoped state the type's output |
| 584 | // function needs. |
| 585 | func (t *DoltgresType) FormatValueWithContext(ctx *sql.Context, val any) (string, error) { |
| 586 | if val == nil { |
| 587 | return "", nil |
| 588 | } |
| 589 | return t.IoOutput(ctx, val) |
| 590 | } |
| 591 | |
| 592 | // GetAttTypMod returns the attTypMod field of the type. |
| 593 | func (t *DoltgresType) GetAttTypMod() int32 { |
no test coverage detected