Re: Re: [INTERFACES] jdbc driver: Support for 'BOOL'

From: Peter T Mount <peter(at)retep(dot)org(dot)uk>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Joseph Shraibman <jks(at)selectacast(dot)net>, =?ISO-8859-1?Q?Jos=E9_Antonio?=Matute Calvo <cmaj(at)encomix(dot)es>, pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: Re: [INTERFACES] jdbc driver: Support for 'BOOL'
Date: 2001-01-26 09:26:16
Message-ID: 980501176.3a7142b89a36f@webmail.retep.org.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-interfaces pgsql-jdbc

Quoting Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>:

>
> Seems the BIT type works in Java 7.1 beta now.

Has anything changed with boolean types in the backend then, as nothing has
been done on the JDBC side?

>
> [ Charset ISO-8859-1 unsupported, converting... ]
> > "Jos? Antonio Matute Calvo" wrote:
> > >
> > > Problem:
> > > If try to use field of type "java.sql.Types.BIT" obtains error
> "Unknown
> > > Types Value"
> > >
> > > Resolution:
> > >
> > > Add this:
> > >
> > > PreparedStatement.java
> > > 460,461d459
> > > < case Types.BIT:
> > > < set(parameterIndex,
> > > ((Boolean)x).booleanValue() ? "true" : "false");
> >
> > Why not set(parameterIndex,x.toString())?
> >
> >
> > --
> > Joseph Shraibman
> > jks(at)selectacast(dot)net
> > Increase signal to noise ratio. http://www.targabot.com
> >
>
>
> --
> 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
>

--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Peter T Mount 2001-01-26 09:31:13 Re: [JDBC] Re: no way in LargeObject API to detect short read?
Previous Message Michael Richards 2001-01-26 05:59:10 Re: Postgres int rounding

Browse pgsql-interfaces by date

  From Date Subject
Next Message cbell 2001-01-26 20:26:31 obtaining results from trigger
Previous Message Michael Meskes 2001-01-26 07:09:09 Re: STRANGE INCREMENT IN MEMORY SIZE OF A PRECESS COMPILED WITH ECPG

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter T Mount 2001-01-26 09:29:16 Re: [JDBC] Open 7.1 items
Previous Message Hiroshi Inoue 2001-01-26 04:18:15 Re: Open 7.1 items