Re: [HACKERS] numeric data type on 6.5

From: "D'Arcy" "J(dot)M(dot)" Cain <darcy(at)druid(dot)net>
To: t-ishii(at)sra(dot)co(dot)jp (Tatsuo Ishii)
Cc: hackers(at)postgreSQL(dot)org
Subject: Re: [HACKERS] numeric data type on 6.5
Date: 1999-04-27 09:37:26
Message-ID: m10c4Iw-0000bIC@druid.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Thus spake Tatsuo Ishii
> I thought numeric data type on 6.5 allows a very large precision. Am I
> missing something?
[...]
> test=> insert into t1 values(100000000000000000000000000000);
> NOTICE: Integer input '100000000000000000000000000000' is out of range; promoted to float

Try this.
insert into t1 values('100000000000000000000000000000'::numeric);

--
D'Arcy J.M. Cain <darcy(at){druid|vex}.net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 424 2871 (DoD#0082) (eNTP) | what's for dinner.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Tatsuo Ishii 1999-04-27 09:48:04 Re: [HACKERS] numeric data type on 6.5
Previous Message Tatsuo Ishii 1999-04-27 09:10:16 numeric data type on 6.5