diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-25 14:18:36 +0100 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2024-03-25 14:18:36 +0100 |
commit | b2d6b4c728a282f9bbe9ff4fac02a872bef074dd (patch) | |
tree | 8c4c46e812ae82d50d4d32286c8cdcfcdefa699f /src/backend/executor/nodeModifyTable.c | |
parent | 64e401b62b1559d617db5c1e1070d7a05e794c27 (diff) | |
download | postgresql-b2d6b4c728a282f9bbe9ff4fac02a872bef074dd.tar.gz postgresql-b2d6b4c728a282f9bbe9ff4fac02a872bef074dd.zip |
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
Diffstat (limited to 'src/backend/executor/nodeModifyTable.c')
0 files changed, 0 insertions, 0 deletions