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

Function WithTypeFlags

pkg/expression/exprstatic/evalctx.go:112–116  ·  view source on GitHub ↗

WithTypeFlags sets the type flags for the `EvalContext`.

(flags types.Flags)

Source from the content-addressed store, hash-verified

110
111// WithTypeFlags sets the type flags for the `EvalContext`.
112func WithTypeFlags(flags types.Flags) EvalCtxOption {
113 return func(s *evalCtxState) {
114 s.typeCtx = s.typeCtx.WithFlags(flags)
115 }
116}
117
118// WithLocation sets the timezone info for the `EvalContext`.
119func WithLocation(loc *time.Location) EvalCtxOption {

Callers 9

NewPartitionExprBuildCtxFunction · 0.92
newBackfillCtxFunction · 0.92
newReorgExprCtxFunction · 0.92
newLitExprContextFunction · 0.92
getEvalCtxOptionsForTestFunction · 0.85
MakeEvalContextStaticFunction · 0.85

Calls 1

WithFlagsMethod · 0.80

Tested by 3

getEvalCtxOptionsForTestFunction · 0.68