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

Function NewTypedComparisonExpr

pkg/sql/sem/tree/expr.go:438–443  ·  view source on GitHub ↗

NewTypedComparisonExpr returns a new ComparisonExpr that is verified to be well-typed.

(op ComparisonOperator, left, right TypedExpr)

Source from the content-addressed store, hash-verified

436
437// NewTypedComparisonExpr returns a new ComparisonExpr that is verified to be well-typed.
438func NewTypedComparisonExpr(op ComparisonOperator, left, right TypedExpr) *ComparisonExpr {
439 node := &ComparisonExpr{Operator: op, Left: left, Right: right}
440 node.typ = types.Bool
441 node.memoizeFn()
442 return node
443}
444
445// NewTypedComparisonExprWithSubOp returns a new ComparisonExpr that is verified to be well-typed.
446func NewTypedComparisonExprWithSubOp(

Callers 2

normalizeMethod · 0.85
normalizeMethod · 0.85

Calls 1

memoizeFnMethod · 0.95

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…