Skip site navigation (1) Skip section navigation (2)

Support for JDBC Binary type

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 (view raw, whole thread or download thread mbox)
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:

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

Next:From: Jason TishlerDate: 2001-04-23 18:56:23
Subject: Re: [PATCHES] Cygwin PostgreSQL ESQL Patch
Previous:From: Jason TishlerDate: 2001-04-20 19:38:56
Subject: Re: [PATCHES] Cygwin PostgreSQL ESQL Patch

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group