How to work with OID type?
How to work with OID type?
От:
Valeriy Voitishchuk <valeriy.voitishchuk@asml.com>
Дата:
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 -- The information contained in this communication and any attachments is confidential and may be privileged, and is for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify the sender immediately by replying to this message and destroy all copies of this message and any attachments. ASML is neither liable for the proper and complete transmission of the information contained in this communication, nor for any delay in its receipt.
Re: How to work with OID type?
От:
Barry Lind <blind@xythos.com>
Дата:
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 > >