pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Bruce Momjian <pgman@candle.pha.pa.us>
To: Joseph Shraibman <jks@selectacast.net>
Cc: José Antonio Matute Calvo <cmaj@encomix.es>
Cc: pgsql-bugs@postgresql.org
Cc: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] jdbc driver:  Support for 'BOOL'
Date: Wed, 24 Jan 2001 22:31:38 -0500 (EST)
Message-ID: <200101250331.WAA29980@candle.pha.pa.us> (raw)
In-Reply-To: <3A635540.E420BD96@selectacast.net>


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, Pennsylvania 19026



view thread (5+ messages)  latest in thread

Message-ID: <200101250331.WAA29980@candle.pha.pa.us>
Permalink:  ../200101250331.WAA29980@candle.pha.pa.us/
Also on:    postgresql.org/message-id/200101250331.WAA29980@candle.pha.pa.us

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: pgman@candle.pha.pa.us, jks@selectacast.net, cmaj@encomix.es, pgsql-bugs@postgresql.org
  Subject: Re: [INTERFACES] jdbc driver:  Support for 'BOOL'
  In-Reply-To: <200101250331.WAA29980@candle.pha.pa.us>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox