From: | Thorsten Mauch <mauch(at)imkenberg(dot)de> |
---|---|
To: | "'pgsql-patches(at)postgresql(dot)org'" <pgsql-patches(at)postgresql(dot)org> |
Subject: | Support for JDBC Binary type |
Date: | 2001-04-22 22:05:54 |
Message-ID: | E5A63F34D141D111A6F4080009D70ACA0A388D@imkedv_pdc |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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
From | Date | Subject | |
---|---|---|---|
Next Message | Jason Tishler | 2001-04-23 18:56:23 | Re: [PATCHES] Cygwin PostgreSQL ESQL Patch |
Previous Message | Jason Tishler | 2001-04-20 19:38:56 | Re: [PATCHES] Cygwin PostgreSQL ESQL Patch |