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

Function WithAllowCastArray

pkg/expression/expression.go:91–95  ·  view source on GitHub ↗

WithAllowCastArray specifies whether to allow casting to an array type.

(allow bool)

Source from the content-addressed store, hash-verified

89
90// WithAllowCastArray specifies whether to allow casting to an array type.
91func WithAllowCastArray(allow bool) BuildOption {
92 return func(options *BuildOptions) {
93 options.AllowCastArray = allow
94 }
95}
96
97// WithCastExprTo indicates that we need to the cast the generated expression to the target type
98func WithCastExprTo(targetFt *types.FieldType) BuildOption {

Callers 4

TestBuildExpressionFunction · 0.92
BuildHiddenColumnInfoFunction · 0.92
CollectGeneratedColumnsFunction · 0.92

Calls

no outgoing calls

Tested by 1

TestBuildExpressionFunction · 0.74