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

Method TypeCheck

postgres/parser/sem/tree/type_check.go:1121–1131  ·  view source on GitHub ↗

TypeCheck implements the Expr interface.

(
	ctx context.Context, semaCtx *SemaContext, desired *types.T,
)

Source from the content-addressed store, hash-verified

1119
1120// TypeCheck implements the Expr interface.
1121func (expr *IsNotNullExpr) TypeCheck(
1122 ctx context.Context, semaCtx *SemaContext, desired *types.T,
1123) (TypedExpr, error) {
1124 exprTyped, err := expr.Expr.TypeCheck(ctx, semaCtx, types.Any)
1125 if err != nil {
1126 return nil, err
1127 }
1128 expr.Expr = exprTyped
1129 expr.typ = types.Bool
1130 return expr, nil
1131}
1132
1133// TypeCheck implements the Expr interface.
1134func (expr *NullIfExpr) TypeCheck(

Callers

nothing calls this directly

Calls 1

TypeCheckMethod · 0.65

Tested by

no test coverage detected