MCPcopy Create free account
hub / github.com/cockroachdb/cockroachdb-parser / NewTimestampExceedsBoundsError

Function NewTimestampExceedsBoundsError

pkg/sql/sem/tree/datum.go:2590–2596  ·  view source on GitHub ↗

NewTimestampExceedsBoundsError returns a new "exceeds supported timestamp bounds" error for the given timestamp, with the correct pgcode.

(t time.Time)

Source from the content-addressed store, hash-verified

2588// NewTimestampExceedsBoundsError returns a new "exceeds supported timestamp
2589// bounds" error for the given timestamp, with the correct pgcode.
2590func NewTimestampExceedsBoundsError(t time.Time) error {
2591 return pgerror.Newf(
2592 pgcode.InvalidTimeZoneDisplacementValue,
2593 "timestamp %q exceeds supported timestamp bounds",
2594 t.Format(time.RFC3339),
2595 )
2596}
2597
2598// DTimestamp is the timestamp Datum.
2599type DTimestamp struct {

Callers 1

roundAndCheckFunction · 0.85

Calls 2

NewfFunction · 0.92
FormatMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…