Re: [HACKERS] numeric data type on 6.5

Поиск
Список
Период
Сортировка
От D'Arcy" "J.M." Cain
Тема Re: [HACKERS] numeric data type on 6.5
Дата
Msg-id m10c4Iw-0000bIC@druid.net
обсуждение исходный текст
Ответ на numeric data type on 6.5  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Ответы Re: [HACKERS] numeric data type on 6.5  (Tatsuo Ishii <t-ishii@sra.co.jp>)
Список 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@{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.


В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: numeric data type on 6.5
Следующее
От: Tatsuo Ishii
Дата:
Сообщение: Re: [HACKERS] numeric data type on 6.5