Support for JDBC Binary type - Mailing list pgsql-patches

From Thorsten Mauch
Subject Support for JDBC Binary type
Date
Msg-id E5A63F34D141D111A6F4080009D70ACA0A388D@imkedv_pdc
Whole thread Raw
List pgsql-patches
Hi All
I use postgresql with castor. The current JDBC-Driver doesn't
support binary objects through getObject and setObject. Castor
uses this methods. In order to make the Driver compatible with
castor i changed the

PreparedStatwment.setObject in line 551 and add
ther following code:
              case Types.BINARY:
              case Types.VARBINARY:
                        setObject(parameterIndex,x);
                         break;

and ResultSet.getObject in line 829 i add
       case Types.BINARY:
       case Types.VARBINARY:
             return getBytes(columnIndex);

Maybe it is usefull for other than castor users. So i want
to propose to add this code to the JDBC-Driver.

Thanx Thorsten

pgsql-patches by date:

Previous
From: Peter T Mount
Date:
Subject: Re: [JDBC] PATCH: JDBC compile w/ jikes
Next
From: Jason Tishler
Date:
Subject: Re: Cygwin PostgreSQL ESQL Patch