Add casts from int4 and int8 to numeric.
Robert Haas <rhaas@postgresql.org>
Add casts from int4 and int8 to numeric. Joey Adams, per gripe from Ramanujam. Review by myself and Tom Lane.
Files
| Path | Change | +/− |
|---|---|---|
| doc/src/sgml/datatype.sgml | modified | +12 −5 |
| src/backend/utils/adt/cash.c | modified | +61 −1 |
| src/include/catalog/catversion.h | modified | +1 −1 |
| src/include/catalog/pg_cast.h | modified | +2 −0 |
| src/include/catalog/pg_proc.h | modified | +4 −0 |
| src/include/utils/cash.h | modified | +3 −0 |
| src/test/regress/expected/money.out | modified | +63 −0 |
| src/test/regress/sql/money.sql | modified | +15 −0 |