Re: jdbc driver: Support for 'BOOL' - Mailing list pgsql-interfaces

From Bruce Momjian
Subject Re: jdbc driver: Support for 'BOOL'
Date
Msg-id 200101250331.WAA29980@candle.pha.pa.us
Whole thread Raw
In response to Re: jdbc driver: Support for 'BOOL'  (Joseph Shraibman <jks@selectacast.net>)
Responses Re: [BUGS] Re: jdbc driver: Support for 'BOOL'  (Peter T Mount <peter@retep.org.uk>)
List pgsql-interfaces
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@selectacast.net
> Increase signal to noise ratio.  http://www.targabot.com
> 


--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
853-3000+  If your life is a hard drive,     |  830 Blythe Avenue +  Christ can be your backup.        |  Drexel Hill,
Pennsylvania19026
 


pgsql-interfaces by date:

Previous
From: "David Wall"
Date:
Subject: Re: blobs and small binary objects
Next
From: "Maurizio"
Date:
Subject: Fw: STRANGE INCREMENT IN MEMORY SIZE OF A PRECESS COMPILED WITH ECPG