Re: BUG #5197: JDBC: selecting oid results in Exception

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BUG #5197: JDBC: selecting oid results in Exception
Дата
Msg-id alpine.BSO.2.00.0911201833340.19888@leary.csoft.net
обсуждение исходный текст
Ответ на BUG #5197: JDBC: selecting oid results in Exception  ("Joseph Shraibman" <jks@selectacast.net>)
Список pgsql-bugs
On Thu, 19 Nov 2009, Joseph Shraibman wrote:

>
> The following bug has been logged online:
>
> Bug reference:      5197
> Description:        JDBC: selecting oid results in Exception
> Details:
>
> query: "select oid FROM pg_catalog.pg_class c;"
>
> -----------------------------------------------
> org.postgresql.util.PSQLException: Bad value for type int : 2148618421
>     at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.toInt(AbstractJdbc2ResultSet.jav
> a:2630)

Java doesn't have an equivalent for unsigned types, so the JDBC driver
internally tries to fit it into a signed int by using the negative values.
Unfortunately that's failing and it's not what the user wants for this
case.  I imagine the user really wants to get a Long back from this.  I'm
going on vacation next week, but when I return, I'll make that happen.

Kris Jurka

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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: BUG #5200: Use of min suffix in autovacuum_naptime ignored
Следующее
От: "Alvaro Herrera"
Дата:
Сообщение: BUG #5206: wal_sync_method in stock postgresql.conf may be wrong