aboutsummaryrefslogtreecommitdiff
path: root/contrib/postgres_fdw/postgres_fdw.c
diff options
context:
space:
mode:
authorJohn Naylor <john.naylor@postgresql.org>2021-07-30 13:50:23 -0400
committerJohn Naylor <john.naylor@postgresql.org>2021-07-30 16:28:43 -0400
commitf051b87ace6dda42c191b77858c8d099af0de46a (patch)
treebb48d218fda622cdf6032ab5f7bceff6cfc681e3 /contrib/postgres_fdw/postgres_fdw.c
parent99da905d5c4335d2df80f5cf05dad046a10d30fb (diff)
downloadpostgresql-f051b87ace6dda42c191b77858c8d099af0de46a.tar.gz
postgresql-f051b87ace6dda42c191b77858c8d099af0de46a.zip
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
Diffstat (limited to 'contrib/postgres_fdw/postgres_fdw.c')
0 files changed, 0 insertions, 0 deletions