MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / FindEqualComparisonFunction

Function FindEqualComparisonFunction

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

FindEqualComparisonFunction looks up an overload of the "=" operator for a given pair of input operand types.

(
	leftType, rightType *types.T,
)

Source from the content-addressed store, hash-verified

5340// FindEqualComparisonFunction looks up an overload of the "=" operator
5341// for a given pair of input operand types.
5342func 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.
5353func IntPow(x, y DInt) (*DInt, error) {

Callers

nothing calls this directly

Calls 1

LookupImplMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…