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 <[email protected]> Discussion: https://postgr.es/m/[email protected] Branch ------ master Details ------- https://git.postgresql.org/pg/commitdiff/b2d6b4c728a282f9bbe9ff4fac02a872bef074dd Modified Files -------------- src/interfaces/ecpg/compatlib/informix.c | 10 ++++++++-- .../ecpg/test/expected/compat_informix-dec_test.stdout | 12 ++++++------ 2 files changed, 14 insertions(+), 8 deletions(-)
