Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search archives
  Advanced Search

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


  • From: Kris Jurka <books(at)ejurka(dot)com>
  • To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
  • Cc: Johan Miller <johanmiller(at)gmail(dot)com>, pgsql-jdbc(at)postgresql(dot)org
  • Subject: Re: Problem with java infinity mapping to postgres real column type
  • Date: Wed, 16 Jul 2008 23:52:19 -0400 (EDT)
  • Message-id: <Pine.BSO.4.64.0807162351110.28897@leary.csoft.net> <text/plain>



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



Home | Main Index | Thread Index

Privacy Policy | About PostgreSQL
Copyright © 1996 – 2012 PostgreSQL Global Development Group