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

Function inputErrorf

postgres/parser/pgdate/parsing.go:270–273  ·  view source on GitHub ↗

inputErrorf returns an error with pg code InvalidDatetimeFormat.

(format string, args ...interface{})

Source from the content-addressed store, hash-verified

268
269// inputErrorf returns an error with pg code InvalidDatetimeFormat.
270func inputErrorf(format string, args ...interface{}) error {
271 err := errors.Newf(format, args...)
272 return pgerror.WithCandidateCode(err, pgcode.InvalidDatetimeFormat)
273}
274
275// outOfRangeError returns an error with pg code DatetimeFieldOverflow.
276func outOfRangeError(field string, val int) error {

Callers 6

ExtractMethod · 0.85
interpretNumberMethod · 0.85
matchedSentinelMethod · 0.85
validateMethod · 0.85
badFieldPrefixErrorFunction · 0.85
fieldSetterJulianDateFunction · 0.85

Calls 1

WithCandidateCodeFunction · 0.92

Tested by

no test coverage detected