pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Joseph Shraibman <jks@selectacast.net>
To: 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: Mon, 15 Jan 2001 14:53:36 -0500
Message-ID: <3A635540.E420BD96@selectacast.net> (raw)
References: <93i2nh$2do8$1@news.tht.net>

"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



view thread (5+ messages)  latest in thread

Message-ID: <3A635540.E420BD96@selectacast.net>
Permalink:  ../3A635540.E420BD96@selectacast.net/
Also on:    postgresql.org/message-id/3A635540.E420BD96@selectacast.net

 · 

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: jks@selectacast.net, cmaj@encomix.es, pgsql-bugs@postgresql.org
  Subject: Re: [INTERFACES] jdbc driver:  Support for 'BOOL'
  In-Reply-To: <3A635540.E420BD96@selectacast.net>

* 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