NewTimestampExceedsBoundsError returns a new "exceeds supported timestamp bounds" error for the given timestamp, with the correct pgcode.
(t time.Time)
| 2588 | // NewTimestampExceedsBoundsError returns a new "exceeds supported timestamp |
| 2589 | // bounds" error for the given timestamp, with the correct pgcode. |
| 2590 | func 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. |
| 2599 | type DTimestamp struct { |
no test coverage detected
searching dependent graphs…