mirror of https://github.com/jackc/pgx.git
Remove Int64Valuer implementation from stringWrapper
parent
500c0721d7
commit
e392908c72
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue