Re: patch for getXXX methods - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: patch for getXXX methods
Date
Msg-id 40F15718.7000302@opencloud.com
Whole thread Raw
In response to Re: patch for getXXX methods  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: patch for getXXX methods
List pgsql-jdbc
Dave Cramer wrote:
> Attached, with -cb this time

Thanks. Comments:

How you handle bytes and shorts is inconsistent with how you handle
longs; we should consistently do it one way or the other. Since you lose
precision going via a double, that probably means the BigInteger approach.

The shared conversion/rangecheck logic should be done once in a helper
function rather than duplicated -- call the helper with appropriate
range info and cast the result.

I still don't like silently discarding any fractional portion of the value.

-O

pgsql-jdbc by date:

Previous
From: Oliver Jowett
Date:
Subject: Re: No class found for inet
Next
From: "Dario V. Fassi"
Date:
Subject: Re: Timestamp Question