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

Function WithDefaultCollationForUTF8MB4

pkg/expression/exprstatic/exprctx.go:70–74  ·  view source on GitHub ↗

WithDefaultCollationForUTF8MB4 sets the default collation for utf8mb4 for `ExprContext`.

(collation string)

Source from the content-addressed store, hash-verified

68
69// WithDefaultCollationForUTF8MB4 sets the default collation for utf8mb4 for `ExprContext`.
70func WithDefaultCollationForUTF8MB4(collation string) ExprCtxOption {
71 return func(s *exprCtxState) {
72 s.defaultCollationForUTF8MB4 = collation
73 }
74}
75
76// WithBlockEncryptionMode sets the block encryption mode for `ExprContext`.
77func WithBlockEncryptionMode(mode string) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getExprCtxOptionsForTestFunction · 0.68