Skip to content

Commit

Permalink
Merge remote-tracking branch 'dsheshnev/bugfix/uint64'
Browse files Browse the repository at this point in the history
  • Loading branch information
aarondl committed Jan 8, 2021
2 parents 3d3e4d9 + 4334d2e commit c1106c4
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions uint64.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ func (u Uint64) Value() (driver.Value, error) {
if !u.Valid {
return nil, nil
}

if u.Uint64 >= 1<<63 {
return strconv.FormatUint(u.Uint64, 10), nil
}

return int64(u.Uint64), nil
}

Expand Down

0 comments on commit c1106c4

Please sign in to comment.