pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Tom Lane <tgl@sss.pgh.pa.us>
Cc: Johan Miller <johanmiller@gmail.com>
Cc: pgsql-jdbc@postgresql.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> (raw)
In-Reply-To: <7489.1216217283@sss.pgh.pa.us>
References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com>
	<7489.1216217283@sss.pgh.pa.us>



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



view thread (7+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0807162351110.28897@leary.csoft.net>
Permalink:  ../Pine.BSO.4.64.0807162351110.28897@leary.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0807162351110.28897@leary.csoft.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: books@ejurka.com, tgl@sss.pgh.pa.us, johanmiller@gmail.com
  Subject: Re: Problem with java infinity mapping to postgres real column type
  In-Reply-To: <Pine.BSO.4.64.0807162351110.28897@leary.csoft.net>
  References: <3713c3aa0807142254p72e8416dsd8c18a5ebf101212@mail.gmail.com> <7489.1216217283@sss.pgh.pa.us> <Pine.BSO.4.64.0807162351110.28897@leary.csoft.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox