8000 bitsize largest option is 64 · jackc/pgx@12582a0 · GitHub
[go: up one dir, main page]

Skip to content

Commit 12582a0

Browse files
yungtrizzlejackc
authored andcommitted
bitsize largest option is 64
1 parent 905f252 commit 12582a0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pgtype/numeric.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -762,7 +762,7 @@ func (scanPlanTextAnyToNumericScanner) Scan(src []byte, dst any) error {
762762
if strings.ContainsAny(string(src), "eE") {
763763
if bigF, ok := new(big.Float).SetString(string(src)); ok {
764764
smallF, _ := bigF.Float64()
765-
src = []byte(strconv.FormatFloat(smallF, 'f', -1, int(bigF.Prec())))
765+
src = []byte(strconv.FormatFloat(smallF, 'f', -1, 64))
766766
}
767767
}
768768

0 commit comments

Comments
 (0)
0