pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Kris Jurka <books@ejurka.com>
Cc: Oliver Jowett <oliver@opencloud.com>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: getXXX methods
Date: Fri, 09 Jul 2004 11:45:24 -0400
Message-ID: <1089387924.1506.287.camel@localhost.localdomain> (raw)
In-Reply-To: <1089288683.1506.235.camel@localhost.localdomain>
References: <1088795907.1536.118.camel@localhost.localdomain>
	<Pine.BSO.4.56.0407061336560.12042@leary.csoft.net>
	<1089145387.1506.65.camel@localhost.localdomain>
	<Pine.BSO.4.56.0407061559110.373@leary.csoft.net>
	<1089154614.1508.70.camel@localhost.localdomain>
	<40EB385F.9030704@opencloud.com>
	<1089162095.1508.173.camel@localhost.localdomain>
	<40EB4D85.6080100@opencloud.com>
	<Pine.BSO.4.56.0407062020270.26570@leary.csoft.net>
	<40EB5683.90301@opencloud.com>
	<Pine.BSO.4.56.0407062054400.25870@leary.csoft.net>
	<1089230030.1506.226.camel@localhost.localdomain>
	<Pine.BSO.4.56.0407080146340.23659@leary.csoft.net>
	<1089288683.1506.235.camel@localhost.localdomain>

Well, I have an interesting problem...

Detecting that a value is greater than MaxLong?

If I parse it using Double.parseDouble, and it is greater than LongMax
by 1 or so, the value ends up actually being less due to rounding ?

Any suggestions?

Dave
On Thu, 2004-07-08 at 08:11, Dave Cramer wrote:
> I think that since the SQL spec is referenced at the end of the JDBC
> spec that it has some relevance. I just thought that in absence of a
> second, or third opinion this would suggest a course of action?
> 
> Dave
> On Thu, 2004-07-08 at 02:50, Kris Jurka wrote:
> > On Wed, 7 Jul 2004, Dave Cramer wrote:
> > 
> > > Ok, it appears (at least from my understanding) that Kris is correct
> > > here.
> > > 
> > > I had a look at the sql2003 proposed spec (ISO/IEC 9075-2:2003(E)), and
> > > it states:
> > 
> > Well the SQL spec and the JDBC spec are different things.  I was basing 
> > part of my argument on the SQL spec's logic and extending that to fill in 
> > the holes in the JDBC spec, but I don't consider this definitive.  I still 
> > feel this is the right thing to do, but I don't want to close off the 
> > discussion if people feel otherwise.
> > 
> > Kris Jurka
> > 
> > 
> > 
> > 
> > 
> > 
-- 
Dave Cramer
519 939 0336
ICQ # 14675561




view thread (17+ messages)  latest in thread

Message-ID: <1089387924.1506.287.camel@localhost.localdomain>
Permalink:  ../1089387924.1506.287.camel@localhost.localdomain/
Also on:    postgresql.org/message-id/1089387924.1506.287.camel@localhost.localdomain

 · 

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: pg@fastcrypt.com, books@ejurka.com, oliver@opencloud.com
  Subject: Re: getXXX methods
  In-Reply-To: <1089387924.1506.287.camel@localhost.localdomain>
  References: <1088795907.1536.118.camel@localhost.localdomain> <Pine.BSO.4.56.0407061336560.12042@leary.csoft.net> <1089145387.1506.65.camel@localhost.localdomain> <Pine.BSO.4.56.0407061559110.373@leary.csoft.net> <1089154614.1508.70.camel@localhost.localdomain> <40EB385F.9030704@opencloud.com> <1089162095.1508.173.camel@localhost.localdomain> <40EB4D85.6080100@opencloud.com> <Pine.BSO.4.56.0407062020270.26570@leary.csoft.net> <40EB5683.90301@opencloud.com> <Pine.BSO.4.56.0407062054400.25870@leary.csoft.net> <1089230030.1506.226.camel@localhost.localdomain> <Pine.BSO.4.56.0407080146340.23659@leary.csoft.net> <1089288683.1506.235.camel@localhost.localdomain> <1089387924.1506.287.camel@localhost.localdomain>

* 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