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: (view raw or whole 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                        |
  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


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-2015 The PostgreSQL Global Development Group