Support for JDBC Binary type

Поиск
Список
Период
Сортировка
От Thorsten Mauch
Тема Support for JDBC Binary type
Дата
Msg-id E5A63F34D141D111A6F4080009D70ACA0A388D@imkedv_pdc
обсуждение исходный текст
Список 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 по дате отправления:

Предыдущее
От: Peter T Mount
Дата:
Сообщение: Re: [JDBC] PATCH: JDBC compile w/ jikes
Следующее
От: Jason Tishler
Дата:
Сообщение: Re: Cygwin PostgreSQL ESQL Patch