Re: Precision of data types and functions

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Precision of data types and functions
Дата
Msg-id 17519.1156796293@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Precision of data types and functions  (Gregory Stark <gsstark@mit.edu>)
Ответы Re: Precision of data types and functions  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Gregory Stark <gsstark@mit.edu> writes:
> Scott Marlowe <smarlowe@g2switchworks.com> writes:
>> test=> insert into test values (123123123123123.2);
>> ERROR:  numeric field overflow
>> DETAIL:  The absolute value is greater than or equal to 10^14 for field
>> with precision 12, scale 2.

> Uhm 10^14? What version of Postgres is that?!

Looks like any current release :-(

> Though I get a correct text with 8.2CVS:
> ...
> I guess Tom fixed some bugs when he reimplemented NUMERIC a while back.

No, I think Bruce fixed this recently.  It's just a cosmetic mistake in
the error message so we didn't back-patch it.

            regards, tom lane

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

Предыдущее
От: Naz Gassiep
Дата:
Сообщение: Re: Atomicity?
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: Atomicity?