Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group