Re: How to work with OID type?

From: Barry Lind <blind(at)xythos(dot)com>
To: Valeriy Voitishchuk <valeriy(dot)voitishchuk(at)asml(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: How to work with OID type?
Date: 2003-08-15 18:40:00
Message-ID: 3F3D2900.1020407@xythos.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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
>
>

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2003-08-15 23:14:28 Re: CVS JDBC driver will try to use server-side-prepare on unpreparable SQL
Previous Message Barry Lind 2003-08-15 18:24:47 Re: CVS JDBC driver will try to use server-side-prepare on