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, PostgreSQL jdbc list <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Re: [INTERFACES] jdbc driver: Support for 'BOOL'
Date: 2001-01-25 13:26:50
Message-ID: 980429210.3a70299abcb42@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>:

>
> Is this a bug? Can someone submit a patch?

Why not setBoolean(parameterIndex,((Boolean)x),booleanValue());

Also, unless it's changed postgres accepts 't' & 'f' not 'true' or 'false'?

Also, which PreparedStatement.java are we taking about, as there are 2 of them?

Peter

>
>
> [ 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-25 13:38:06 Re: JDBC buggy in 7.1beta3
Previous Message Robert B. Easter 2001-01-25 12:29:00 Re: BUG in postgres mathematic

Browse pgsql-interfaces by date

  From Date Subject
Next Message Bruce Momjian 2001-01-25 13:47:20 Re: RE: [PATCHES] ODBC Patch for OJs/Large Querys & Rows
Previous Message Dave Page 2001-01-25 10:40:45 RE: RE: [PATCHES] ODBC Patch for OJs/Large Querys & Rows

Browse pgsql-jdbc by date

  From Date Subject
Next Message Peter T Mount 2001-01-25 13:38:06 Re: JDBC buggy in 7.1beta3
Previous Message Peter T Mount 2001-01-25 13:21:01 Re: Re: [BUGS] JDBC PreparedStatement.setMaxRows() affects other objects instantiated from this class and it's parent class