Re: Using boolean '1' in jdbc2

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Using boolean '1' in jdbc2
Date: 2001-09-13 19:29:38
Message-ID: 200109131929.f8DJTcm09458@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Marc G. Fournier 2001-09-13 19:45:36 Re: [JDBC] Re: What needs to be done?
Previous Message Peter Eisentraut 2001-09-13 19:24:28 Re: Using boolean '1' in jdbc2