Re: BigDecimal instead of Integer in 7.1

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема Re: BigDecimal instead of Integer in 7.1
Дата
Msg-id 3AEE239B.260B8DF2@selectacast.net
обсуждение исходный текст
Ответ на BigDecimal instead of Integer in 7.1  (Joseph Shraibman <jks@selectacast.net>)
Список 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 по дате отправления:

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: Vectors in 7.1 ResultSets
Следующее
От: Ned Wolpert
Дата:
Сообщение: Returning oid or primary key