Обсуждение: jdbc and booleans

Поиск
Список
Период
Сортировка

jdbc and booleans

От
Joseph Shraibman
Дата:
How come boolean values return by the jdbc drivers come as a String of
value "t" instead of a Boolean?



Re: [INTERFACES] jdbc and booleans

От
Peter Mount
Дата:
On Mon, 27 Dec 1999, Joseph Shraibman wrote:

> How come boolean values return by the jdbc drivers come as a String of
> value "t" instead of a Boolean?

If you use getString(), then you will get the PostgreSQL representation,
which is 't'. getBoolean() will return true or false.

Peter

--      Peter T Mount peter@retep.org.uk     Main Homepage: http://www.retep.org.uk
PostgreSQL JDBC Faq: http://www.retep.org.uk/postgresJava PDF Generator: http://www.retep.org.uk/pdf