diff options
author | John Naylor <john.naylor@postgresql.org> | 2021-07-30 13:50:23 -0400 |
---|---|---|
committer | John Naylor <john.naylor@postgresql.org> | 2021-07-30 15:59:10 -0400 |
commit | d9589eb62a2b4bb43a7893b0bb1acd6eb1bdfe9b (patch) | |
tree | a16cd421a276c2bfef9f5629e3dda46e7db1129f /src/backend/utils/adt/numeric.c | |
parent | d7ded08e6e0e565adf6fea7c55bfcf2845e5f8cc (diff) | |
download | postgresql-d9589eb62a2b4bb43a7893b0bb1acd6eb1bdfe9b.tar.gz postgresql-d9589eb62a2b4bb43a7893b0bb1acd6eb1bdfe9b.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 'src/backend/utils/adt/numeric.c')
0 files changed, 0 insertions, 0 deletions