Thread: pgsql: Add casts from int4 and int8 to numeric.

pgsql: Add casts from int4 and int8 to numeric.

From
Robert Haas
Date:
Add casts from int4 and int8 to numeric.

Joey Adams, per gripe from Ramanujam.  Review by myself and Tom Lane.

Branch
------
master

Details
-------
http://git.postgresql.org/pg/commitdiff/f5e524d92be609c709825be8995bf77f10880c3b

Modified Files
--------------
doc/src/sgml/datatype.sgml          |   17 +++++++---
src/backend/utils/adt/cash.c        |   62 +++++++++++++++++++++++++++++++++-
src/include/catalog/catversion.h    |    2 +-
src/include/catalog/pg_cast.h       |    2 +
src/include/catalog/pg_proc.h       |    4 ++
src/include/utils/cash.h            |    3 ++
src/test/regress/expected/money.out |   63 +++++++++++++++++++++++++++++++++++
src/test/regress/sql/money.sql      |   15 ++++++++
8 files changed, 161 insertions(+), 7 deletions(-)