Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Дата
Msg-id 41F6C105.6000304@opencloud.com
обсуждение исходный текст
Ответ на Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3  (Pavel Jbanov <pavel.jbanov@shaw.ca>)
Ответы Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Список pgsql-jdbc
Pavel Jbanov wrote:
> Sorry, gone unfinished. :/
>
> The exception is:
> Caused by: org.postgresql.util.PSQLException: ???????????? Byte f
>     at
> org.postgresql.jdbc1.AbstractJdbc1ResultSet.getByte(AbstractJdbc1ResultSet.java:244)

I'd need to see the untranslated exception message to be sure, but..

getByte() expects a numeric value (TINYINT, although SMALLINT/int2 is
the closest mapping in PostgreSQL). You appear to be trying to retrieve
a text/varchar (or possibly boolean) value that can't be parsed as a
numeric value.

(there might be a driver bug here -- the JDBC datatype conversion tables
indicate you can use getByte() on BIT/BOOLEAN, but I'm not sure what the
exact conversion should be)

-O

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

Предыдущее
От: Pavel Jbanov
Дата:
Сообщение: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3
Следующее
От: Pavel Jbanov
Дата:
Сообщение: Re: postgresql 7.4.6-6, hibernate-2.1.6, jdbc3