Re: Using boolean '1' in jdbc2 - Mailing list pgsql-jdbc

From Bruce Momjian
Subject Re: Using boolean '1' in jdbc2
Date
Msg-id 200109131929.f8DJTcm09458@candle.pha.pa.us
Whole thread Raw
In response to Re: Using boolean '1' in jdbc2  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: Using boolean '1' in jdbc2  (Rene Pijlman <rene@lab.applinet.nl>)
List 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 by date:

Previous
From: Peter Eisentraut
Date:
Subject: Re: Using boolean '1' in jdbc2
Next
From: Rene Pijlman
Date:
Subject: Re: Using boolean '1' in jdbc2