pgsql: ecpg: Fix return code for overflow in numeric conversion

Поиск
Список
Период
Сортировка
От Daniel Gustafsson
Тема pgsql: ecpg: Fix return code for overflow in numeric conversion
Дата
Msg-id [email protected]
обсуждение исходный текст
Список pgsql-committers
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(-)


В списке pgsql-committers по дате отправления: