Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally

Поиск
Список
Период
Сортировка
От Kevin Grittner
Тема Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Дата
Msg-id 4B66E8FB020000250002EDCC@gw.wicourts.gov
обсуждение исходный текст
Ответ на Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally  (Nedim Cholich <nedim@cholich.com>)
Список pgsql-jdbc
Nedim Cholich <nedim@cholich.com> wrote:

> Yes, it's a TEXT column and yes I'm calling
> rs.getClob(columnName);
>
> What am I suppose to call instead?

In PostgreSQL a text column is not a BLOB or CLOB.
Try rs.getString(columnName);

For BLOB behavior, see large objects:

http://www.postgresql.org/docs/8.4/interactive/largeobjects.html

-Kevin

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

Предыдущее
От: Nedim Cholich
Дата:
Сообщение: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally
Следующее
От: Kris Jurka
Дата:
Сообщение: Re: Jdbc4ResultSet getClob and getBlob are calling getLong internally