postgresql/src/interfaces/ecpg/pgtypeslib
John Naylor f051b87ace Fix range check in ECPG numeric to int conversion
The previous coding guarded against -INT_MAX instead of INT_MIN,
leading to -2147483648 being rejected as out of range.

Per bug #17128 from Kevin Sweet

Discussion: https://www.postgresql.org/message-id/flat/17128-55a8a879727a3e3a%40postgresql.org
Reviewed-by: Tom Lane
Backpatch to all supported branches
2021-07-30 16:28:43 -04:00
..
.gitignore Build src/common files as a library with -fPIC. 2018-09-28 14:28:19 -04:00
Makefile Update copyright for 2021 2021-01-02 13:06:25 -05:00
common.c Make the order of the header file includes consistent in non-backend modules. 2019-10-25 07:41:52 +05:30
datetime.c Remove useless "return;" lines 2019-11-28 16:48:37 -03:00
dt.h Fix failure-to-compile-standalone in ecpg's dt.h. 2019-08-18 17:51:35 -04:00
dt_common.c Replace remaining StrNCpy() by strlcpy() 2020-08-10 23:20:37 +02:00
exports.txt Add PGTYPESchar_free() to avoid cross-module problems on Windows. 2018-06-18 18:33:53 +12:00
interval.c Revert use singular for -1 (commits 9ee7d533da and 5da9868ed9 2021-05-01 10:42:44 -04:00
numeric.c Fix range check in ECPG numeric to int conversion 2021-07-30 16:28:43 -04:00
pgtypeslib_extern.h Get rid of useless/dangerous redefinition of bool in ECPG. 2019-10-25 12:17:41 -04:00
timestamp.c Initial pgindent and pgperltidy run for v13. 2020-05-14 13:06:50 -04:00