pgsql: Make cast functions to type money error safe
Started by Peter Eisentraut4 months ago1 messagescomitters
Make cast functions to type money error safe
This converts the cast functions from types integer, bigint, and
numeric to type money to support soft errors.
Note: Casting from type money to type numeric (the other way, function
cash_numeric) is not yet error safe.
Author: jian he <jian.universality@gmail.com>
Discussion: /messages/by-id/CADkLM=fv1JfY4Ufa-jcwwNbjQixNViskQ8jZu3Tz_p656i_4hQ@mail.gmail.com
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/b36b95640487b9dc70408e9078c30e80963efccb
Modified Files
--------------
src/backend/utils/adt/cash.c | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)