MCPcopy Create free account
hub / github.com/pingcap/tidb / SetArray

Method SetArray

pkg/parser/types/field_type.go:329–331  ·  view source on GitHub ↗

SetArray sets the array field of the FieldType.

(array bool)

Source from the content-addressed store, hash-verified

327
328// SetArray sets the array field of the FieldType.
329func (ft *FieldType) SetArray(array bool) {
330 ft.array = array
331}
332
333// IsArray return true if the filed type is array.
334func (ft *FieldType) IsArray() bool {

Callers 5

yyParseFunction · 0.95
TestFieldTypeHashEqualsFunction · 0.95
TestColumnToProtoFunction · 0.45
ArrayTypeMethod · 0.45
TestCastArrayFuncFunction · 0.45

Calls

no outgoing calls

Tested by 3

TestFieldTypeHashEqualsFunction · 0.76
TestColumnToProtoFunction · 0.36
TestCastArrayFuncFunction · 0.36