diff options
author | Peter Eisentraut <peter@eisentraut.org> | 2024-01-03 10:05:35 +0100 |
---|---|---|
committer | Peter Eisentraut <peter@eisentraut.org> | 2024-01-03 10:05:35 +0100 |
commit | c1b9e1e56d8c11a00869766a02de537d349586cd (patch) | |
tree | b3773b80a801343e55a52838e961936191f2768e /src/include/utils/numeric.h | |
parent | d4e66a39eb96ca514e3f49c85cf0b4b6f138854e (diff) | |
download | postgresql-c1b9e1e56d8c11a00869766a02de537d349586cd.tar.gz postgresql-c1b9e1e56d8c11a00869766a02de537d349586cd.zip |
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: https://www.postgresql.org/message-id/flat/CAM2+6=XjTyqrrqHAOj80r0wVQxJSxc0iyib9bPC55uFO9VKatg@mail.gmail.com
Diffstat (limited to 'src/include/utils/numeric.h')
-rw-r--r-- | src/include/utils/numeric.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/utils/numeric.h b/src/include/utils/numeric.h index 08e4f8c217d..0780b52094d 100644 --- a/src/include/utils/numeric.h +++ b/src/include/utils/numeric.h @@ -101,5 +101,6 @@ extern Numeric numeric_div_opt_error(Numeric num1, Numeric num2, extern Numeric numeric_mod_opt_error(Numeric num1, Numeric num2, bool *have_error); extern int32 numeric_int4_opt_error(Numeric num, bool *have_error); +extern int64 numeric_int8_opt_error(Numeric num, bool *have_error); #endif /* _PG_NUMERIC_H_ */ |