Re: BUG #1780: JDBC driver "setNull" throws for BLOB and CLOB

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: BUG #1780: JDBC driver "setNull" throws for BLOB and CLOB
Дата
Msg-id Pine.BSO.4.56.0508011009570.17912@leary.csoft.net
обсуждение исходный текст
Ответ на Re: BUG #1780: JDBC driver "setNull" throws for BLOB and CLOB  (Andrus Adamchik <andrus@objectstyle.org>)
Список pgsql-jdbc

On Mon, 1 Aug 2005, Andrus Adamchik wrote:

> Just tested it with build 312 and the original problem went away. Now
> I am seeing a new problem with null BLOBs only:
>
> java.sql.SQLException: ERROR: column "blob_col" is of type bytea but
> expression is of type oid

bytea is not the correct type to use when storing Blobs.  You need to use
oid as the underlying type, or if you want to use bytea you need to use
setBytes or setNull(x, Types.BINARY).

Kris Jurka

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Andrus Adamchik
Дата:
Сообщение: Re: BUG #1780: JDBC driver "setNull" throws for BLOB and CLOB
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Timestamp changes committed to HEAD