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

Method AddFlag

pkg/parser/types/field_type.go:243–245  ·  view source on GitHub ↗

AddFlag adds a flag to the FieldType.

(flag uint)

Source from the content-addressed store, hash-verified

241
242// AddFlag adds a flag to the FieldType.
243func (ft *FieldType) AddFlag(flag uint) {
244 ft.flag |= flag
245}
246
247// AndFlag and the flag of the FieldType.
248func (ft *FieldType) AndFlag(flag uint) {

Callers 15

TestIsTypeCompatibleFunction · 0.95
TestCastFunction · 0.95
getUnsignedFieldTypeFunction · 0.95
TestCMSketchCodingTopNFunction · 0.95
AggFieldTypeFunction · 0.95
TestFieldTypeFunction · 0.95
TestConvertTypeFunction · 0.95
acceptFunction · 0.95
denyFunction · 0.95
testDatumToUInt32Function · 0.95

Calls

no outgoing calls

Tested by 15

TestIsTypeCompatibleFunction · 0.76
TestCastFunction · 0.76
getUnsignedFieldTypeFunction · 0.76
TestCMSketchCodingTopNFunction · 0.76
TestFieldTypeFunction · 0.76
TestConvertTypeFunction · 0.76
acceptFunction · 0.76
denyFunction · 0.76
testDatumToUInt32Function · 0.76
newTypeWithFlagFunction · 0.76
TestFieldTypeFunction · 0.76
TestCastValueStrictFunction · 0.76