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

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 64e401b) | patch
ecpg: Fix return code for overflow in numeric conversion
2024年3月25日 13:18:36 +0000 (14:18 +0100)
2024年3月25日 13:18:36 +0000 (14:18 +0100)
commit b2d6b4c728a282f9bbe9ff4fac02a872bef074dd
ecpg: Fix return code for overflow in numeric conversion

The decimal conversion functions dectoint and dectolong are documented
to return ECPG_INFORMIX_NUM_OVERFLOW in case of overflows, but always
returned -1 on all errors due to incorrectly checking the returnvalue
from the PGTYPES* functions.

Author: Aidar Imamov <a.imamov@postgrespro.ru>
Discussion: https://postgr.es/m/54d2b53327516d9454daa5fb2f893bdc@postgrespro.ru
src/interfaces/ecpg/compatlib/informix.c diff | blob | blame | history
src/interfaces/ecpg/test/expected/compat_informix-dec_test.stdout diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

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