Skip to content

Commit

Permalink
bitsize largest option is 64
Browse files Browse the repository at this point in the history
  • Loading branch information
yungtrizzle committed Nov 23, 2023
1 parent a837d4e commit 46b4094
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgtype/numeric.go
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ func (scanPlanTextAnyToNumericScanner) Scan(src []byte, dst any) error {
if strings.ContainsAny(string(src), "eE") {
if bigF, ok := new(big.Float).SetString(string(src)); ok {
smallF, _ := bigF.Float64()
src = []byte(strconv.FormatFloat(smallF, 'f', -1, int(bigF.Prec())))
src = []byte(strconv.FormatFloat(smallF, 'f', -1, 64))
}
}

Expand Down

0 comments on commit 46b4094

Please sign in to comment.