Skip to content

Commit 3b93296

Browse files
committed
Settle on maxint in overflow.
1 parent 2d0a850 commit 3b93296

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/numbertype.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1083,7 +1083,7 @@ func mustInt64(v interface{}) int64 {
10831083
return int64(tv)
10841084
case uint64:
10851085
if tv > math.MaxInt64 {
1086-
panic(fmt.Sprintf("value %d exceeds int64 range", tv))
1086+
return math.MaxInt64
10871087
}
10881088
return int64(tv)
10891089
case bool:

0 commit comments

Comments
 (0)