pgsql: Add casts from int4 and int8 to numeric.

From: Robert Haas <rhaas(at)postgresql(dot)org>
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Add casts from int4 and int8 to numeric.
Date: 2011-04-05 13:37:35
Message-ID: E1Q76Rr-0006dg-ET@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message User Fxjr 2011-04-05 14:13:33 npgsql - Npgsql2: [npgsql-Patches-1011012 ] Australian Date and Time
Previous Message Shigeru HANADA 2011-04-05 10:03:07 Re: Re: [COMMITTERS] pgsql: Support comments on FOREIGN DATA WRAPPER and SERVER objects.