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

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

From: Joseph Shraibman <jks(at)selectacast(dot)net>
To: José Antonio Matute Calvo <cmaj(at)encomix(dot)es>
Cc: pgsql-bugs(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] jdbc driver: Support for 'BOOL'
Date: 2001-01-15 19:53:36
Message-ID: 3A635540.E420BD96@selectacast.net (view raw or flat)
Thread:
Lists: pgsql-bugspgsql-interfacespgsql-jdbc
"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

In response to

Responses

pgsql-bugs by date

Next:From: Stu CoatesDate: 2001-01-15 22:20:11
Subject: JDBC buggy in 7.1beta3
Previous:From: Tom LaneDate: 2001-01-15 15:22:39
Subject: Re: Silent insert lack

pgsql-interfaces by date

Next:From: Knopp, GaryDate: 2001-01-15 20:09:04
Subject: 7.1 Beta3 bug when using ODBC
Previous:From: Tom SamploniusDate: 2001-01-15 16:37:23
Subject: Re: improve performance

pgsql-jdbc by date

Next:From: Joseph ShraibmanDate: 2001-01-15 20:14:26
Subject: Re: Patch for JDBC timestamp problems
Previous:From: Bruce MomjianDate: 2001-01-14 03:08:08
Subject: Re: [PATCHES] Revised Patch for JDBC timestamp problems

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