Versions in this module Expand all Collapse all v7 v7.0.4 Jan 30, 2023 v7.0.2 Jan 30, 2023 Changes in this version + const UnspecifiedLength + const VarStorageLen + var ErrDataOutOfRange = terror.ClassTypes.NewStd(mysql.ErrDataOutOfRange) + var ErrIllegalValueForType = terror.ClassTypes.NewStd(mysql.ErrIllegalValueForType) + var ErrInvalidDefault = terror.ClassTypes.NewStd(mysql.ErrInvalidDefault) + var ErrTruncatedWrongValue = terror.ClassTypes.NewStd(mysql.ErrTruncatedWrongValue) + var TiDBStrictIntegerDisplayWidth bool + func HasCharset(ft *FieldType) bool + func IsTypeBlob(tp byte) bool + func IsTypeChar(tp byte) bool + func StrToType(ts string) (tp byte) + 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 + func NewFieldType(tp byte) *FieldType + func (ft *FieldType) AddFlag(flag uint) + func (ft *FieldType) AndFlag(flag uint) + func (ft *FieldType) ArrayType() *FieldType + func (ft *FieldType) CleanElemIsBinaryLit() + func (ft *FieldType) Clone() *FieldType + func (ft *FieldType) CompactStr() string + func (ft *FieldType) DelFlag(flag uint) + func (ft *FieldType) Equal(other *FieldType) bool + func (ft *FieldType) EvalType() EvalType + func (ft *FieldType) FormatAsCastType(w io.Writer, explicitCharset bool) + func (ft *FieldType) GetCharset() string + func (ft *FieldType) GetCollate() string + func (ft *FieldType) GetDecimal() int + func (ft *FieldType) GetElem(idx int) string + func (ft *FieldType) GetElemIsBinaryLit(idx int) bool + func (ft *FieldType) GetElems() []string + func (ft *FieldType) GetFlag() uint + func (ft *FieldType) GetFlen() int + func (ft *FieldType) GetType() byte + func (ft *FieldType) Hybrid() bool + func (ft *FieldType) InfoSchemaStr() string + func (ft *FieldType) Init(tp byte) + func (ft *FieldType) IsArray() bool + func (ft *FieldType) IsDecimalValid() bool + func (ft *FieldType) IsVarLengthType() bool + func (ft *FieldType) MarshalJSON() ([]byte, error) + func (ft *FieldType) MemoryUsage() (sum int64) + func (ft *FieldType) PartialEqual(other *FieldType, unsafe bool) bool + func (ft *FieldType) Restore(ctx *format.RestoreCtx) error + func (ft *FieldType) RestoreAsCastType(ctx *format.RestoreCtx, explicitCharset bool) + func (ft *FieldType) SetArray(array bool) + func (ft *FieldType) SetCharset(charset string) + func (ft *FieldType) SetCollate(collate string) + func (ft *FieldType) SetDecimal(decimal int) + func (ft *FieldType) SetDecimalUnderLimit(decimal int) + func (ft *FieldType) SetElem(idx int, element string) + func (ft *FieldType) SetElemWithIsBinaryLit(idx int, element string, isBinaryLit bool) + func (ft *FieldType) SetElems(elems []string) + func (ft *FieldType) SetFlag(flag uint) + func (ft *FieldType) SetFlen(flen int) + func (ft *FieldType) SetFlenUnderLimit(flen int) + func (ft *FieldType) SetType(tp byte) + func (ft *FieldType) StorageLength() int + func (ft *FieldType) String() string + func (ft *FieldType) ToggleFlag(flag uint) + func (ft *FieldType) UnmarshalJSON(data []byte) error + func (ft *FieldType) UpdateFlenAndDecimalUnderLimit(old *FieldType, deltaDecimal int, deltaFlen int)