Re: BigDecimal instead of Integer in 7.1

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: "'pgsql-jdbc(at)postgresql(dot)org'" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: BigDecimal instead of Integer in 7.1
Date: 2001-05-01 02:46:51
Message-ID: 3AEE239B.260B8DF2@selectacast.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Tom Lane wrote:
>
> Joseph Shraibman <jks(at)selectacast(dot)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(at)selectacast(dot)net
Increase signal to noise ratio. http://www.targabot.com

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rolf Schillinger 2001-05-02 14:12:03 multiple resource sets
Previous Message Joseph Shraibman 2001-05-01 02:42:53 Vectors in 7.1 ResultSets