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

Function WithSysDateIsNow

pkg/expression/exprstatic/exprctx.go:84–88  ·  view source on GitHub ↗

WithSysDateIsNow sets the sysdate is now for `ExprContext`.

(now bool)

Source from the content-addressed store, hash-verified

82
83// WithSysDateIsNow sets the sysdate is now for `ExprContext`.
84func WithSysDateIsNow(now bool) ExprCtxOption {
85 return func(s *exprCtxState) {
86 s.sysDateIsNow = now
87 }
88}
89
90// WithNoopFuncsMode sets the noop funcs mode for `ExprContext`.
91func WithNoopFuncsMode(mode int) ExprCtxOption {

Callers 4

getExprCtxOptionsForTestFunction · 0.85
MakeExprContextStaticFunction · 0.85

Calls

no outgoing calls

Tested by 2

getExprCtxOptionsForTestFunction · 0.68