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

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Joseph Shraibman <jks(at)selectacast(dot)net>
Cc: José Antonio Matute Calvo <cmaj(at)encomix(dot)es>, pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] jdbc driver: Support for 'BOOL'
Date: 2001-01-25 03:31:38
Message-ID: 200101250331.WAA29980@candle.pha.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-interfaces pgsql-jdbc


Seems the BIT type works in Java 7.1 beta now.

[ 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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Barry Lind 2001-01-25 07:43:34 Re: JDBC buggy in 7.1beta3
Previous Message Alex Krohn 2001-01-25 01:58:31 select fails on indexed varchars.

Browse pgsql-interfaces by date

  From Date Subject
Next Message Maurizio 2001-01-25 07:00:38 Fw: STRANGE INCREMENT IN MEMORY SIZE OF A PRECESS COMPILED WITH ECPG
Previous Message David Wall 2001-01-25 01:09:35 Re: blobs and small binary objects

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bruce Momjian 2001-01-25 04:07:40 Open 7.1 items
Previous Message Bruce Momjian 2001-01-25 00:07:26 Re: Re: [GENERAL] Re: JDBC Performance