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

Function unexpectedTypeError

postgres/parser/sem/tree/type_check.go:236–239  ·  view source on GitHub ↗
(expr Expr, want, got *types.T)

Source from the content-addressed store, hash-verified

234}
235
236func unexpectedTypeError(expr Expr, want, got *types.T) error {
237 return pgerror.Newf(pgcode.InvalidParameterValue,
238 "expected %s to be of type %s, found type %s", expr, errors.Safe(want), errors.Safe(got))
239}
240
241func decorateTypeCheckError(err error, format string, a ...interface{}) error {
242 if !errors.HasType(err, (*placeholderTypeAmbiguityErr)(nil)) {

Callers 3

TypeCheckSameTypedExprsFunction · 0.85
typeCheckSameTypedConstsFunction · 0.85

Calls 1

NewfFunction · 0.92

Tested by

no test coverage detected