Re: Problem with java infinity mapping to postgres real column type

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Problem with java infinity mapping to postgres real column type
Дата
Msg-id Pine.BSO.4.64.0807162351110.28897@leary.csoft.net
обсуждение исходный текст
Ответ на Re: Problem with java infinity mapping to postgres real column type  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: Problem with java infinity mapping to postgres real column type
Список pgsql-jdbc

On Wed, 16 Jul 2008, Tom Lane wrote:

> It sounds like "infinity" is getting translated to "some large number"
> rather than the correct "Infinity" or "-Infinity" symbol.  The latter
> two should work on IEEE-compliant platforms, but you might want to check
> manually:

Actually the problem is:

jurka=# select 'infinity'::float8::float4;
ERROR:  type "real" value out of range: overflow

I would have expected that the float8 -> float4 conversion would just keep
it as infinity.

Kris Jurka

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Problem with java infinity mapping to postgres real column type
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Problem with java infinity mapping to postgres real column type