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

Method SetType

pkg/parser/types/field_type.go:232–235  ·  view source on GitHub ↗

SetType sets the type of the FieldType.

(tp byte)

Source from the content-addressed store, hash-verified

230
231// SetType sets the type of the FieldType.
232func (ft *FieldType) SetType(tp byte) {
233 ft.tp = tp
234 ft.array = false
235}
236
237// SetFlag sets the flag of the FieldType.
238func (ft *FieldType) SetFlag(flag uint) {

Callers 15

TestCastFunction · 0.95
buildSelectionMethod · 0.95
buildColumnWithNameFunction · 0.95
AggFieldTypeFunction · 0.95
TestIsBinaryStrFunction · 0.95
TestIsNonBinaryStrFunction · 0.95
yyParseFunction · 0.95
fieldTypeFromPBColumnFunction · 0.95

Calls

no outgoing calls

Tested by 15

TestCastFunction · 0.76
TestIsBinaryStrFunction · 0.76
TestIsNonBinaryStrFunction · 0.76
TestGetZeroValueFunction · 0.76
TestGetDefaultValueFunction · 0.76
TestRowCodecFunction · 0.76
TestFieldTypeHashEqualsFunction · 0.76
TestSetVarFromColumnFunction · 0.76
TestConcatSigFunction · 0.76
TestConcatWSSigFunction · 0.76