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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 0dac5b5) | patch
Add overflow checks to money type input function
Thu, 8 Sep 2016 16:00:00 +0000 (12:00 -0400)
2016年9月14日 17:00:00 +0000 (12:00 -0500)
commit 656df624c0d7b50e1714f2a3a14e143e63799a80
Add overflow checks to money type input function

The money type input function did not have any overflow checks at all.
There were some regression tests that purported to check for overflow,
but they actually checked for the overflow behavior of the int8 type
before casting to money. Remove those unnecessary checks and add some
that actually check the money input function.

Reviewed-by: Fabien COELHO <coelho@cri.ensmp.fr>
src/backend/utils/adt/cash.c diff | blob | blame | history
src/test/regress/expected/money.out diff | blob | blame | history
src/test/regress/sql/money.sql diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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