Re: Problem with java infinity mapping to postgres real column type
В списке pgsql-jdbc по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: Problem with java infinity mapping to postgres real column type |
| Дата | |
| Msg-id | 13936.1216271734@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Problem with java infinity mapping to postgres real column type (Kris Jurka <books@ejurka.com>) |
| Ответы |
Re: Problem with java infinity mapping to postgres real column
type
|
| Список | pgsql-jdbc |
Kris Jurka <books@ejurka.com> writes:
> Actually the problem is:
> jurka=# select 'infinity'::float8::float4;
> ERROR: type "real" value out of range: overflow
Well, that's definitely a problem, but what PG version are you testing
on what platform? I get this using CVS HEAD on Fedora 9, Darwin, and
HPUX:
regression=# select 'infinity'::float8::float4;
float4
----------
Infinity
(1 row)
I suspect that you aren't getting true "Infinity" from
'infinity'::float8 in the first place, but some large number,
which then fails to fit into float4.
regards, tom lane
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера