MCPcopy
hub / github.com/pingcap/tidb / IsString

Function IsString

pkg/types/etc.go:143–145  ·  view source on GitHub ↗

IsString returns a boolean indicating whether the field type is a string type.

(tp byte)

Source from the content-addressed store, hash-verified

141// IsString returns a boolean indicating
142// whether the field type is a string type.
143func IsString(tp byte) bool {
144 return IsTypeChar(tp) || IsTypeBlob(tp) || IsTypeVarchar(tp) || IsTypeUnspecified(tp)
145}
146
147// IsStringKind returns a boolean indicating whether the tp is a string type.
148func IsStringKind(kind byte) bool {

Callers 13

indexJoinPathTmpInitFunction · 0.92
needConvertFunction · 0.92
enforceExchangerImplMethod · 0.92
GetSelectivityByFilterFunction · 0.92
dataForColumnsInTableMethod · 0.92
checkIndexColumnFunction · 0.92
ConvertColumnInfoFunction · 0.92
checkTypeChangeSupportedFunction · 0.85
IsBinaryStrFunction · 0.85

Calls 4

IsTypeCharFunction · 0.85
IsTypeBlobFunction · 0.85
IsTypeVarcharFunction · 0.85
IsTypeUnspecifiedFunction · 0.85

Tested by

no test coverage detected