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

Struct CmpOp

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

CmpOp is a comparison operator.

Source from the content-addressed store, hash-verified

1720
1721// CmpOp is a comparison operator.
1722type CmpOp struct {
1723 LeftType *types.T
1724 RightType *types.T
1725
1726 // If NullableArgs is false, the operator returns NULL
1727 // whenever either argument is NULL.
1728 NullableArgs bool
1729
1730 // Datum return type is a union between *DBool and dNull.
1731 Fn func(*EvalContext, Datum, Datum) (Datum, error)
1732
1733 types TypeList
1734 isPreferred bool
1735
1736 //// counter, if non-nil, should be incremented every time the
1737 //// operator is type checked.
1738 //counter telemetry.Counter
1739}
1740
1741func (op *CmpOp) params() TypeList {
1742 return op.types

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected