A Bug Fix - Is this a real bug? Has this already been fixed?

From: Hunter Hillegas <lists(at)lastonepicked(dot)com>
To: Postgre JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: A Bug Fix - Is this a real bug? Has this already been fixed?
Date: 2001-04-19 22:45:37
Message-ID: B704B8A0.12EE0%lists@lastonepicked.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Saw this on a EJB list I'm on...

Does anyone know if this is in fact an error and if the driver needs to be
updated?

Hunter

------ Forwarded Message
From: Christofer Sandberg <csadev(at)propacta(dot)se>
Reply-To: jboss-user(at)lists(dot)sourceforge(dot)net
Date: 20 Apr 2001 00:00:01 +0200
To: jboss-user(at)lists(dot)sourceforge(dot)net
Subject: Re: [JBoss-user] CMP Postgres and Booleans

I had this problem aswell, and i belive that the postgres
JDBC2 driver is to blame.

A quick fix to the problem is to edit the ResultSet.java file
in the Postgres driver source.

Change the line:
return ((c == 't') || (c == 'T'));
int the getBoolean function on line 184:ish to:
return ((c == 't') || (c == 'T') (c == '1'));

This solved the problem for me... thank god for OpenSource.

</christofer>

On 09 Apr 2001 12:00:14 -0700, Philip Craven wrote:
> I have a CMP bean that has a boolean variable. Before
> jboss is started, the value in the postgres database
> is 1 (true), after I start postgres and the bean is
> loaded, the value goes to false, and the database is
> updated to reflect this. What do I have
> misconfigured?

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2001-04-19 23:12:10 Re: Still having trouble getting JDBC working
Previous Message Corey Mosher 2001-04-19 18:56:53 Still having trouble getting JDBC working