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

Method TypeCheck

postgres/parser/sem/tree/type_check.go:1108–1118  ·  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

1106
1107// TypeCheck implements the Expr interface.
1108func (expr *IsNullExpr) TypeCheck(
1109 ctx context.Context, semaCtx *SemaContext, desired *types.T,
1110) (TypedExpr, error) {
1111 exprTyped, err := expr.Expr.TypeCheck(ctx, semaCtx, types.Any)
1112 if err != nil {
1113 return nil, err
1114 }
1115 expr.Expr = exprTyped
1116 expr.typ = types.Bool
1117 return expr, nil
1118}
1119
1120// TypeCheck implements the Expr interface.
1121func (expr *IsNotNullExpr) TypeCheck(

Callers

nothing calls this directly

Calls 1

TypeCheckMethod · 0.65

Tested by

no test coverage detected