From: | Daniel Gustafsson <dgustafsson(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: ecpg: Fix return code for overflow in numeric conversion |
Date: | 2024-03-25 13:21:25 |
Message-ID: | E1rokGT-005ZqW-HG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 <a(dot)imamov(at)postgrespro(dot)ru>
Discussion: https://postgr.es/m/54d2b53327516d9454daa5fb2f893bdc@postgrespro.ru
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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Robert Haas | 2024-03-25 13:26:57 | Re: pgsql: Track last_inactive_time in pg_replication_slots. |
Previous Message | Heikki Linnakangas | 2024-03-25 13:01:48 | pgsql: Merge prune, freeze and vacuum WAL record formats |