From e392908c7294ecb258f60c8cc833abd57b1362d6 Mon Sep 17 00:00:00 2001 From: Jack Christensen Date: Sat, 2 Apr 2022 08:24:55 -0500 Subject: [PATCH] Remove Int64Valuer implementation from stringWrapper --- pgtype/builtin_wrappers.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/pgtype/builtin_wrappers.go b/pgtype/builtin_wrappers.go index f182f570..30a88465 100644 --- a/pgtype/builtin_wrappers.go +++ b/pgtype/builtin_wrappers.go @@ -351,15 +351,6 @@ func (w *stringWrapper) ScanInt64(v Int8) error { return nil } -func (w stringWrapper) Int64Value() (Int8, error) { - num, err := strconv.ParseInt(string(w), 10, 64) - if err != nil { - return Int8{}, err - } - - return Int8{Int64: int64(num), Valid: true}, nil -} - type timeWrapper time.Time func (w *timeWrapper) ScanDate(v Date) error {