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

Function WithCharset

pkg/expression/exprstatic/exprctx.go:62–67  ·  view source on GitHub ↗

WithCharset sets the charset and collation for `ExprContext`.

(charset, collation string)

Source from the content-addressed store, hash-verified

60
61// WithCharset sets the charset and collation for `ExprContext`.
62func WithCharset(charset, collation string) ExprCtxOption {
63 return func(s *exprCtxState) {
64 s.charset = charset
65 s.collation = collation
66 }
67}
68
69// WithDefaultCollationForUTF8MB4 sets the default collation for utf8mb4 for `ExprContext`.
70func WithDefaultCollationForUTF8MB4(collation string) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getExprCtxOptionsForTestFunction · 0.68