Re: Potential issue in ecpg-informix decimal converting functions

Michael Paquier <michael@paquier.xyz>

From: Michael Paquier <michael@paquier.xyz>
To: a.imamov@postgrespro.ru
Cc: Daniel Gustafsson <daniel@yesql.se>, PostgreSQL Hackers <pgsql-hackers@lists.postgresql.org>
Date: 2024-02-24T01:15:12Z
Lists: pgsql-hackers
On Fri, Feb 23, 2024 at 06:03:41PM +0300, a.imamov@postgrespro.ru wrote:
> Thank's for advice, the patch will be registered for the next commitfest.

The risk looks really minimal to me, but playing with error codes
while the logic of the function is unchanged does not strike me as
something to backpatch as it could slightly break applications.  On
HEAD, I'm OK with that.
--
Michael

Commits

  1. doc: Document error handling in PGTYPESnumeric_to_long

  2. ecpg: Fix return code for overflow in numeric conversion