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

Method ForEachCmpOp

pkg/sql/sem/tree/eval.go:1561–1571  ·  view source on GitHub ↗

ForEachCmpOp iterates the ops in the set.

(f func(op *CmpOp) error)

Source from the content-addressed store, hash-verified

1559
1560// ForEachCmpOp iterates the ops in the set.
1561func (o *CmpOpOverloads) ForEachCmpOp(f func(op *CmpOp) error) error {
1562 if o == nil {
1563 return nil
1564 }
1565 for _, ol := range o.overloads {
1566 if err := f(ol); err != nil {
1567 return iterutil.Map(err)
1568 }
1569 }
1570 return nil
1571}
1572
1573func makeCmpOpOverload(
1574 op treecmp.ComparisonOperatorSymbol, a, b *types.T, calledOnNullInput bool, v volatility.V,

Callers 1

cmpOpFixupsFunction · 0.80

Calls 1

MapFunction · 0.92

Tested by

no test coverage detected