Re: [JDBC] Problem with boolean type

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: [JDBC] Problem with boolean type
Дата
Msg-id Pine.BSO.4.56.0410071017190.14222@leary.csoft.net
обсуждение исходный текст
Ответ на Problem with boolean type  ("Johann Robette" <jrobette@onyme.com>)
Список pgsql-general

On Thu, 7 Oct 2004, Johann Robette wrote:

> 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

I don't see how that could be happening.  The attached test works fine for
me and exercises every way I see to set a boolean.  Perhaps the EJB is
internally converting this to a setString() call?  Could you investigate
more into what actual driver calls are being made?

Kris Jurka

Вложения

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

Предыдущее
От: "David Bitner"
Дата:
Сообщение: regular expression searches
Следующее
От: "Net Virtual Mailing Lists"
Дата:
Сообщение: Index problem.... GIST (tsearch2)