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

Function WithDefaultWeekFormatMode

pkg/expression/exprstatic/evalctx.go:160–164  ·  view source on GitHub ↗

WithDefaultWeekFormatMode sets the value of the 'default_week_format' system variable.

(mode string)

Source from the content-addressed store, hash-verified

158
159// WithDefaultWeekFormatMode sets the value of the 'default_week_format' system variable.
160func WithDefaultWeekFormatMode(mode string) EvalCtxOption {
161 return func(s *evalCtxState) {
162 s.defaultWeekFormatMode = mode
163 }
164}
165
166// WithDivPrecisionIncrement sets the value of the 'div_precision_increment' system variable.
167func WithDivPrecisionIncrement(inc int) EvalCtxOption {

Callers 4

getEvalCtxOptionsForTestFunction · 0.85
MakeEvalContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getEvalCtxOptionsForTestFunction · 0.68