doc: Document error handling in PGTYPESnumeric_to_long
authorDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 25 Mar 2024 13:18:39 +0000 (14:18 +0100)
committerDaniel Gustafsson <dgustafsson@postgresql.org>
Mon, 25 Mar 2024 13:18:39 +0000 (14:18 +0100)
commit68174679fea2d514e9281fddd826abaccfac5bf7
tree2e48bd4b24f2a219f0eb9ac4c077d96df1f4200f
parentb2d6b4c728a282f9bbe9ff4fac02a872bef074dd
doc: Document error handling in PGTYPESnumeric_to_long

The documentation for PGTYPESnumeric_to_long only mentioned errno
being set to indicate overflow but the code also sets errno when
underflow happens.

Reported-by: Aidar Imamov <a.imamov@postgrespro.ru>
Discussion: https://postgr.es/m/eebf0ad50ad4321d65d2d64dd6b7f17d@postgrespro.ru
doc/src/sgml/ecpg.sgml