MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / Eval

Method Eval

pkg/sql/sem/tree/eval_binary_ops.go:43–48  ·  view source on GitHub ↗

Eval suppresses an auto-generated binding and membership in the OpEvaluator interface.

(ctx context.Context, e OpEvaluator, a, b Datum)

Source from the content-addressed store, hash-verified

41// Eval suppresses an auto-generated binding and membership in the
42// OpEvaluator interface.
43func (t *CompareAnyTupleOp) Eval(ctx context.Context, e OpEvaluator, a, b Datum) (Datum, error) {
44 if a == DNull || b == DNull {
45 return MakeDBool(a == DNull && b == DNull), nil
46 }
47 return e.EvalCompareTupleOp(ctx, (*CompareTupleOp)(t), a, b)
48}
49
50// MatchLikeOp is a BinaryEvalOp.
51type MatchLikeOp struct {

Callers

nothing calls this directly

Calls 2

MakeDBoolFunction · 0.85
EvalCompareTupleOpMethod · 0.80

Tested by

no test coverage detected