Skip site navigation (1) Skip section navigation (2)

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

From: Robert Haas <robertmhaas(at)gmail(dot)com>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #5197: JDBC: selecting oid results in Exception
Date: 2009-11-20 17:41:35
Message-ID: 603c8f070911200941n7412676fmc6ec5d6d51024979@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-bugs
On Wed, Nov 18, 2009 at 11:26 PM, Joseph Shraibman <jks(at)selectacast(dot)net> wrote:
>
> The following bug has been logged online:
>
> Bug reference:      5197
> Logged by:          Joseph Shraibman
> Email address:      jks(at)selectacast(dot)net
> PostgreSQL version: 8.2.14
> Operating system:   Linux
> 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)
>        at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getInt(AbstractJdbc2ResultSet.ja
> va:1968)
>        at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.internalGetObject(AbstractJdbc2R
> esultSet.java:119)
>        at
> org.postgresql.jdbc3.AbstractJdbc3ResultSet.internalGetObject(AbstractJdbc3R
> esultSet.java:39)
>        at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getObject(AbstractJdbc2ResultSet
> .java:2429)
>
>
>
>
> Casting oid to bigint doesn't result in an Exception

Thanks for the report.  If you don't get a response from anyone on
this list, you might want to try the pgsql-jdbc list instead, as many
of us here are not familiar with JDBC specifically.

...Robert

In response to

pgsql-bugs by date

Next:From: Heikki LinnakangasDate: 2009-11-20 19:51:39
Subject: Re: BUG #5200: Use of min suffix in autovacuum_naptime ignored
Previous:From: Alan MartinDate: 2009-11-20 15:51:33
Subject: BUG #5204: ODBC connection NOT working

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group