Re: How to work with OID type? - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: How to work with OID type?
Date
Msg-id 3F3D2900.1020407@xythos.com
Whole thread Raw
In response to How to work with OID type?  (Valeriy Voitishchuk <valeriy.voitishchuk@asml.com>)
List pgsql-jdbc
Valeriy,

I would recommend using get/setLong(), since the oid is an unsigned
integer.  get/setString should also work.

thanks,
--Barry

Valeriy Voitishchuk wrote:
> Hello
>
> Which setXXX() method should I use from java.sql.PreparedStatement
> interface to set value of the OID type (this is PostgreSQL type).
> setObject does not work :-(
>
> Same question about getXXX() method from java.sql.ResultSet interface.
>
> Thank you
> Valera
>
>



pgsql-jdbc by date:

Previous
From: Barry Lind
Date:
Subject: Re: CVS JDBC driver will try to use server-side-prepare on
Next
From: Oliver Jowett
Date:
Subject: Re: CVS JDBC driver will try to use server-side-prepare on unpreparable SQL