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

Function WithSQLMode

pkg/expression/exprstatic/evalctx.go:105–109  ·  view source on GitHub ↗

WithSQLMode sets the sql mode for the `EvalContext`.

(sqlMode mysql.SQLMode)

Source from the content-addressed store, hash-verified

103
104// WithSQLMode sets the sql mode for the `EvalContext`.
105func WithSQLMode(sqlMode mysql.SQLMode) EvalCtxOption {
106 return func(s *evalCtxState) {
107 s.sqlMode = sqlMode
108 }
109}
110
111// WithTypeFlags sets the type flags for the `EvalContext`.
112func WithTypeFlags(flags types.Flags) EvalCtxOption {

Callers 9

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

Calls

no outgoing calls

Tested by 2

getEvalCtxOptionsForTestFunction · 0.68