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

Function WithMaxAllowedPacket

pkg/expression/exprstatic/evalctx.go:153–157  ·  view source on GitHub ↗

WithMaxAllowedPacket sets the value of the 'max_allowed_packet' system variable.

(size uint64)

Source from the content-addressed store, hash-verified

151
152// WithMaxAllowedPacket sets the value of the 'max_allowed_packet' system variable.
153func WithMaxAllowedPacket(size uint64) EvalCtxOption {
154 return func(s *evalCtxState) {
155 s.maxAllowedPacket = size
156 }
157}
158
159// WithDefaultWeekFormatMode sets the value of the 'default_week_format' system variable.
160func WithDefaultWeekFormatMode(mode string) EvalCtxOption {

Callers 4

getEvalCtxOptionsForTestFunction · 0.85
MakeEvalContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getEvalCtxOptionsForTestFunction · 0.68