Re: BigDecimal instead of Integer in 7.1

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BigDecimal instead of Integer in 7.1
Дата
Msg-id 1948.988684856@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BigDecimal instead of Integer in 7.1  (Joseph Shraibman <jks@selectacast.net>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Joseph Shraibman
Дата:
Сообщение: BigDecimal instead of Integer in 7.1
Следующее
От: Joseph Shraibman
Дата:
Сообщение: Vectors in 7.1 ResultSets