Further to this, I' m curious what java type you are using for your OID?

If it is anything but "byte[]", JBoss will serialise it, which would be a bad idea I expect.

FYI, this is the way it worked before too.

Regards,

Steve Coy

On Friday, October 25, 2002, at 06:44 PM, Alexey Yudichev wrote:

cvs log for this source file says:

===================================
revision 1.14
date: 2002/10/23 11:39:53;� author: scoy;� state: Exp;� lines: +352 -146
Make better use of the jdbc type to select which methods of java.sql.PreparedStatement/ResultSet to use when storing and loading data.


In particular, this resolves all remaining issues with Oracle clobs and blobs.
===================================


This change creates a problem with PostgreSQL type OID. It should be retrieved with rs.getBinaryStream() not with rs.getObject(). Changing java.lang.Object mapping in standardjbosscmp-jdbc.xml for PostgreSQL from JAVA_OBJECT to BLOB solves the problem.

Best wishes,
� Alexei Yudichev


Reply via email to