Re: getXXX methods - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: getXXX methods
Date
Msg-id Pine.BSO.4.56.0407061559110.373@leary.csoft.net
Whole thread Raw
In response to Re: getXXX methods  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: getXXX methods
List pgsql-jdbc

On Tue, 6 Jul 2004, Dave Cramer wrote:

> Once possibility is to use Double.parseDouble(s).byteValue()
>
> so the code would become
>
> try
> {
>     Byte.parseByte(s)
> }

Why bother with Byte.parseByte at all if you are going to fall back to the
double parsing anyway?  As I mentioned earlier I think it is better to
throw an Exception rather than to silently alter the returned data.

Kris Jurka

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: getXXX methods
Next
From: Dave Cramer
Date:
Subject: Re: getXXX methods