Versions in this module Expand all Collapse all v5 v5.0.7 Oct 19, 2023 v5.0.6 Oct 19, 2023 v5.0.5 Oct 19, 2023 v5.0.4 Oct 19, 2023 v5.0.3 Aug 14, 2023 v5.0.2 Aug 14, 2023 v5.0.1 Aug 11, 2023 Changes in this version + const UnspecifiedLength + const VarStorageLen + var ErrInvalidDefault = terror.ClassTypes.NewStd(mysql.ErrInvalidDefault) + var TiDBStrictIntegerDisplayWidth bool + func HasCharset(ft *FieldType) bool + func IsTypeBlob(tp byte) bool + func IsTypeChar(tp byte) bool + func TypeStr(tp byte) (r string) + func TypeToStr(tp byte, cs string) (r string) + type EvalType byte + const ETDatetime + const ETDecimal + const ETDuration + const ETInt + const ETJson + const ETReal + const ETString + const ETTimestamp + func (et EvalType) IsStringKind() bool + type FieldType struct + Charset string + Collate string + Decimal int + Elems []string + Flag uint + Flen int + Tp byte + func NewFieldType(tp byte) *FieldType + func (ft *FieldType) Clone() *FieldType + func (ft *FieldType) CompactStr() string + func (ft *FieldType) Equal(other *FieldType) bool + func (ft *FieldType) EvalType() EvalType + func (ft *FieldType) FormatAsCastType(w io.Writer, explicitCharset bool) + func (ft *FieldType) Hybrid() bool + func (ft *FieldType) InfoSchemaStr() string + func (ft *FieldType) Init(tp byte) + func (ft *FieldType) Restore(ctx *format.RestoreCtx) error + func (ft *FieldType) RestoreAsCastType(ctx *format.RestoreCtx, explicitCharset bool) + func (ft *FieldType) StorageLength() int + func (ft *FieldType) String() string