FindEqualComparisonFunction looks up an overload of the "=" operator for a given pair of input operand types.
( leftType, rightType *types.T, )
| 5340 | // FindEqualComparisonFunction looks up an overload of the "=" operator |
| 5341 | // for a given pair of input operand types. |
| 5342 | func FindEqualComparisonFunction( |
| 5343 | leftType, rightType *types.T, |
| 5344 | ) (func(*EvalContext, Datum, Datum) (Datum, error), bool) { |
| 5345 | fn, found := CmpOps[EQ].LookupImpl(leftType, rightType) |
| 5346 | if found { |
| 5347 | return fn.Fn, true |
| 5348 | } |
| 5349 | return nil, false |
| 5350 | } |
| 5351 | |
| 5352 | // IntPow computes the value of x^y. |
| 5353 | func IntPow(x, y DInt) (*DInt, error) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…