mirror of
https://github.com/jackc/pgx.git
synced 2025-07-15 00:29:13 +00:00
bitsize largest option is 64
This commit is contained in:
parent
905f252667
commit
12582a0fd4
@ -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))
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user