Re: Statement setNull for Types.CLOB

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Statement setNull for Types.CLOB
Дата
Msg-id Pine.BSO.4.56.0502181507450.24216@leary.csoft.net
обсуждение исходный текст
Ответ на Statement setNull for Types.CLOB  ("Matt Magoffin" <postgresql.org@msqr.us>)
Список pgsql-jdbc

On Fri, 18 Feb 2005, Matt Magoffin wrote:

> Hello, I'm using PostgreSQL 8 and the 310 build of the 8.0 JDBC3 driver
> with Hibernate. For 'text' columns in my database, I had mapped them to
> the Hibernate "text" type. When attempting to set the value of a text
> column to 'null' via a PreparedStatement Hibernate calls setNull() passing
> the Types.CLOB as the SQL type. The Postgres driver is throwing an
> exception, however, saying that type is unknown.
>

This problem was just reported for bytea/BLOB here:

http://archives.postgresql.org/pgsql-jdbc/2005-02/msg00115.php

The same situation applies, I've fixed the setNull call to do something,
but again CLOB really maps to the oid datatype in pg, not text.

Kris Jurka

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

Предыдущее
От: Kalle Kivimaa
Дата:
Сообщение: Hibernate + setObject() + boolean problem with a patch
Следующее
От: bkafka@xmission.com
Дата:
Сообщение: jdbc and windows