Problem with boolean type

Поиск
Список
Период
Сортировка
От Johann Robette
Тема Problem with boolean type
Дата
Msg-id 002401c4ac7c$9e6c33f0$a5010a0a@Johann
обсуждение исходный текст
Ответ на Re: Avoiding explicit addDataType calls for PostGIS  (Markus Schaber <schabios@logi-track.com>)
Ответы Re: Problem with boolean type  (Kris Jurka <books@ejurka.com>)
Re: Problem with boolean type  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
Hi,

I'm using Postgres 8.0 beta 3 and the appropriate JDBC Driver.

I use EJB to create a record in a table containing a Boolean field
"answered".
The EJB method expects a Boolean object so I pass new Boolean(false) in
order to create it as false.

But I get the following error :
java.sql.SQLException: ERROR: column "answered" is of type boolean but
expression is of type text


Any help will be greatly appreciated.

JR



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

Предыдущее
От: Kris Jurka
Дата:
Сообщение: Re: table and column's comments
Следующее
От: Markus Schaber
Дата:
Сообщение: Re: Avoiding explicit addDataType calls for PostGIS