MCPcopy Create free account
hub / github.com/dolthub/doltgresql / makeBox2DComparisonOperators

Function makeBox2DComparisonOperators

postgres/parser/sem/tree/eval.go:1447–1470  ·  view source on GitHub ↗
(op func(lhs, rhs *geo.CartesianBoundingBox) bool)

Source from the content-addressed store, hash-verified

1445})
1446
1447func makeBox2DComparisonOperators(op func(lhs, rhs *geo.CartesianBoundingBox) bool) cmpOpOverload {
1448 return cmpOpOverload{
1449 &CmpOp{
1450 LeftType: types.Box2D,
1451 RightType: types.Box2D,
1452 Volatility: VolatilityImmutable,
1453 },
1454 &CmpOp{
1455 LeftType: types.Box2D,
1456 RightType: types.Geometry,
1457 Volatility: VolatilityImmutable,
1458 },
1459 &CmpOp{
1460 LeftType: types.Geometry,
1461 RightType: types.Box2D,
1462 Volatility: VolatilityImmutable,
1463 },
1464 &CmpOp{
1465 LeftType: types.Geometry,
1466 RightType: types.Geometry,
1467 Volatility: VolatilityImmutable,
1468 },
1469 }
1470}
1471
1472// This map contains the inverses for operators in the CmpOps map that have
1473// inverses.

Callers 1

eval.goFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected