git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 3dddb2a) | patch
Fix range check in ECPG numeric to int conversion
2021年7月30日 17:50:23 +0000 (13:50 -0400)
2021年7月30日 19:39:22 +0000 (15:39 -0400)
commit 5fcf3945bd90bb0170938ad780159779367dc8ac
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
doc/src/sgml/ecpg.sgml diff | blob | blame | history
src/interfaces/ecpg/pgtypeslib/numeric.c diff | blob | blame | history
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.c diff | blob | blame | history
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stderr diff | blob | blame | history
src/interfaces/ecpg/test/expected/pgtypeslib-num_test.stdout diff | blob | blame | history
src/interfaces/ecpg/test/pgtypeslib/num_test.pgc diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /