- Notifications
You must be signed in to change notification settings - Fork5
Commitdb4a5cf
committed
Use "g" not "f" format in ecpg's PGTYPESnumeric_from_double().
The previous coding could overrun the provided buffer size for a very largeinput, or lose precision for a very small input. Adopt the methodologythat's been in use in the equivalent backend code for a long time.Per private report from Bas van Schaik. Back-patch to all supportedbranches.1 parent2287b87 commitdb4a5cf
1 file changed
+3
-2
lines changedLines changed: 3 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2 | 2 |
| |
3 | 3 |
| |
4 | 4 |
| |
| 5 | + | |
5 | 6 |
| |
6 | 7 |
| |
7 | 8 |
| |
| |||
1497 | 1498 |
| |
1498 | 1499 |
| |
1499 | 1500 |
| |
1500 |
| - | |
| 1501 | + | |
1501 | 1502 |
| |
1502 | 1503 |
| |
1503 | 1504 |
| |
1504 |
| - | |
| 1505 | + | |
1505 | 1506 |
| |
1506 | 1507 |
| |
1507 | 1508 |
| |
|
0 commit comments
Comments
(0)