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

Function WithNoopFuncsMode

pkg/expression/exprstatic/exprctx.go:91–96  ·  view source on GitHub ↗

WithNoopFuncsMode sets the noop funcs mode for `ExprContext`.

(mode int)

Source from the content-addressed store, hash-verified

89
90// WithNoopFuncsMode sets the noop funcs mode for `ExprContext`.
91func WithNoopFuncsMode(mode int) ExprCtxOption {
92 intest.Assert(mode == variable.OnInt || mode == variable.OffInt || mode == variable.WarnInt)
93 return func(s *exprCtxState) {
94 s.noopFuncsMode = mode
95 }
96}
97
98// WithRng sets the rng for `ExprContext`.
99func WithRng(rng *mathutil.MysqlRng) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls 1

AssertFunction · 0.92

Tested by 2

getExprCtxOptionsForTestFunction · 0.68