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

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 (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-interfacespgsql-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

pgsql-bugs by date

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

pgsql-interfaces by date

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

pgsql-jdbc by date

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

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