pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: DanixDefcon5 <danixdefcon5@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Money deprecation and cast problem
Date: 24 Apr 2006 11:59:08 -0700
Message-ID: <1145905148.140026.134730@g10g2000cwb.googlegroups.com> (raw)

Ok, I've been using Postgres for quite some time now (about 6
years-ish), except for a MySQL period b/c of work requirements.
However, I never managed to use some of the more special types in the
DBMS, like 'money'.

I know that the 'money' type is now deprecated, but I wonder why it is,
and also ... how was it supposed to cast any other data type to 'money'
anyway??? I checked the function list, per \df and couldn't find any
function to do so, even though the money data type is basically an int4
with the decimal point moved two places to the left. So....

- Why did they deprecate it?
and
- Why were there no functions to convert data types *to* money? There
were plenty of possible casts *from* money...




view thread (2+ messages)  latest in thread

Message-ID: <1145905148.140026.134730@g10g2000cwb.googlegroups.com>
Permalink:  ../1145905148.140026.134730@g10g2000cwb.googlegroups.com/
Also on:    postgresql.org/message-id/1145905148.140026.134730@g10g2000cwb.googlegroups.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: danixdefcon5@gmail.com
  Subject: Re: Money deprecation and cast problem
  In-Reply-To: <1145905148.140026.134730@g10g2000cwb.googlegroups.com>
  References: <1145905148.140026.134730@g10g2000cwb.googlegroups.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox