Re: getXXX methods - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: getXXX methods
Date
Msg-id 40EB4D85.6080100@opencloud.com
Whole thread Raw
In response to Re: getXXX methods  (Dave Cramer <pg@fastcrypt.com>)
Responses Re: getXXX methods
Re: getXXX methods
List pgsql-jdbc
Dave Cramer wrote:
> Oliver,
>
> Well as Kris pointed out the javadoc is next to useless here. I see no
> harm in truncating the data, my assumption being that the user knows
> what they are doing.

If the application really wants silent truncation without warning can't
they do it directly in the query?

I think generating DataTruncation (nb: as a *warning*, not throwing an
exception) is still a good idea. Then at least the application gets some
sort of notification.

Have you read the DataTruncation javadoc & spec section?

-O

pgsql-jdbc by date:

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