Re: BigDecimal instead of Integer in 7.1 - Mailing list pgsql-jdbc

From Joseph Shraibman
Subject Re: BigDecimal instead of Integer in 7.1
Date
Msg-id 3AEE239B.260B8DF2@selectacast.net
Whole thread Raw
In response to BigDecimal instead of Integer in 7.1  (Joseph Shraibman <jks@selectacast.net>)
List pgsql-jdbc
Tom Lane wrote:
>
> Joseph Shraibman <jks@selectacast.net> writes:
> > The problem is suddenly in 7.1 the result of the subselect used to
> > return an Integer now returns a BigInteger and is causing
> > classCastExceptions in my code.  What gives?
>
> sum() and avg() return NUMERIC now for integer input, to avoid
> overflow and precision problems.
>
>                         regards, tom lane


My second count (not in the subquery) is returning an Integer.
--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

pgsql-jdbc by date:

Previous
From: Joseph Shraibman
Date:
Subject: Vectors in 7.1 ResultSets
Next
From: Ned Wolpert
Date:
Subject: Returning oid or primary key