Add numeric_int8_opt_error() to optionally suppress errors
authorPeter Eisentraut <peter@eisentraut.org>
Wed, 3 Jan 2024 09:05:35 +0000 (10:05 +0100)
committerPeter Eisentraut <peter@eisentraut.org>
Wed, 3 Jan 2024 09:05:35 +0000 (10:05 +0100)
commitc1b9e1e56d8c11a00869766a02de537d349586cd
treeb3773b80a801343e55a52838e961936191f2768e
parentd4e66a39eb96ca514e3f49c85cf0b4b6f138854e
Add numeric_int8_opt_error() to optionally suppress errors

This matches the existing numeric_int4_opt_error() (see commit
16d489b0fe).  It will be used by a future JSON-related patch, which
wants to report errors in its own way and thus does not want the
internal functions to throw any error.

Author: Jeevan Chalke <jeevan.chalke@enterprisedb.com>
Discussion: http://www.postgresql.org/message-id/flat/CAM2+6=XjTyqrrqHAOj80r0wVQxJSxc0iyib9bPC55uFO9VKatg@mail.gmail.com
src/backend/utils/adt/numeric.c
src/include/utils/numeric.h