diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-01 11:42:25 -0500 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2015-12-01 11:42:47 -0500 |
commit | 74cf6defa79c64ce8ac3548210686abc3e8695d1 (patch) | |
tree | 4519483dc3296d25ce581d9336c3fe08a210802e /src/tutorial/funcs.c | |
parent | 47e189b5a10fdc5b983d1917e6f641ee80fa500b (diff) |
Use "g" not "f" format in ecpg's PGTYPESnumeric_from_double().
The previous coding could overrun the provided buffer size for a very large
input, or lose precision for a very small input. Adopt the methodology
that's been in use in the equivalent backend code for a long time.
Per private report from Bas van Schaik. Back-patch to all supported
branches.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions