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

Method ArrayType

pkg/parser/types/field_type.go:339–346  ·  view source on GitHub ↗

ArrayType return the type of the array.

()

Source from the content-addressed store, hash-verified

337
338// ArrayType return the type of the array.
339func (ft *FieldType) ArrayType() *FieldType {
340 if !ft.array {
341 return ft
342 }
343 clone := ft.Clone()
344 clone.SetArray(false)
345 return clone
346}
347
348// SetElemWithIsBinaryLit sets the element of the FieldType.
349func (ft *FieldType) SetElemWithIsBinaryLit(idx int, element string, isBinaryLit bool) {

Callers 10

checkAccessFilter4IdxColFunction · 0.80
checkIndexKeysFunction · 0.80
getIdxColTypesMethod · 0.80
buildIndexLookUpCheckerFunction · 0.80
getFunctionMethod · 0.80
evalJSONMethod · 0.80
ColumnToProtoFunction · 0.80
decodeToBytesInternalMethod · 0.80

Calls 2

CloneMethod · 0.95
SetArrayMethod · 0.45

Tested by

no test coverage detected