Skip to content

Commit 2d0a850

Browse files
committed
Return max in overflow
1 parent 044b281 commit 2d0a850

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sql/plan/insert.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ func toInt64(x interface{}) int64 {
659659
return x
660660
case uint64:
661661
if x > math.MaxInt64 {
662-
panic(fmt.Sprintf("Value %d exceeds int64 range", x))
662+
return math.MaxInt64
663663
}
664664
return int64(x)
665665
case float32:

0 commit comments

Comments
 (0)