Re: Using boolean '1' in jdbc2

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: Using boolean '1' in jdbc2
Дата
Msg-id 200109131929.f8DJTcm09458@candle.pha.pa.us
обсуждение исходный текст
Ответ на Re: Using boolean '1' in jdbc2  (Peter Eisentraut <peter_e@gmx.net>)
Ответы Re: Using boolean '1' in jdbc2
Список pgsql-jdbc
> Bruce Momjian writes:
>
> > I noticed that jdbc1 getBoolean allows '1', while jdbc2 does not.  The
> > following patch makes jdbc2 accept '1' also.  Is this OK?
>
> Why?  Booleans always come out as 't' or 'f'.

Someone emailed me privately that they wanted to use '1' for boolean.
No idea why, and no idea why jdbc1 has it.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Using boolean '1' in jdbc2
Следующее
От: Rene Pijlman
Дата:
Сообщение: Re: Using boolean '1' in jdbc2