Re: [HACKERS] Money type display

From: Bruce Momjian <maillist(at)candle(dot)pha(dot)pa(dot)us>
To: darcy(at)druid(dot)net (D'Arcy J(dot)M(dot) Cain)
Cc: martin(at)biochemistry(dot)ucl(dot)ac(dot)uk, hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] Money type display
Date: 1998-02-27 17:19:34
Message-ID: 199802271719.MAA10558@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

> In fact, perhaps we should just turn the money code into the decimal
> type. I understand we have a mechanism now for specifying an argument
> to the input and output functions so we can specify the precision of
> the decimal. Is this correct? If someone can help me out with the
> type specifications, I'll start creating the code to handle decimal
> types. I'll just take the money code and modify it.

Yep, it's in there. atttypmod is passed to all input/output function as
the third argument.

--
Bruce Momjian | 830 Blythe Avenue
maillist(at)candle(dot)pha(dot)pa(dot)us | Drexel Hill, Pennsylvania 19026
+ If your life is a hard drive, | (610) 353-9879(w)
+ Christ can be your backup. | (610) 853-3000(h)

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message sferac 1998-02-27 17:25:46 CURRENT_USER
Previous Message Thomas G. Lockhart 1998-02-27 16:55:27 Re: [HACKERS] HISTORY list for 6.3