BigDecimal instead of Integer in 7.1

Поиск
Список
Период
Сортировка
От Joseph Shraibman
Тема BigDecimal instead of Integer in 7.1
Дата
Msg-id 3AEE20E0.C165C94B@selectacast.net
обсуждение исходный текст
Ответы Re: BigDecimal instead of Integer in 7.1
Список pgsql-jdbc
I just upgraded from 7.0.3 to 7.1.

I have a query like this:
SELECT l, (SELECT COUNT(*) FROM ms WHERE ms.p = 4 AND ms.s = 2),
COUNT(DISTINCT m.uid), COUNT(m.oid), AVG(m.msgs::int), SUM(m.msgs::int)
FROM m, a WHERE key = 4 AND m.p = 4 GROUP BY l;

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?



--
Joseph Shraibman
jks@selectacast.net
Increase signal to noise ratio.  http://www.targabot.com

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

Предыдущее
От: Ned Wolpert
Дата:
Сообщение: Re: JDBC Pooling driver
Следующее
От: Tom Lane
Дата:
Сообщение: Re: BigDecimal instead of Integer in 7.1