Re: 8.0 beta4: Exception with setBoolean on char column

From: Kris Jurka <books(at)ejurka(dot)com>
To: "Laferriere, Al" <ALaferriere(at)Sciforma(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: 8.0 beta4: Exception with setBoolean on char column
Date: 2004-11-08 01:07:08
Message-ID: Pine.BSO.4.56.0411072002200.16843@leary.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Mon, 1 Nov 2004, Laferriere, Al wrote:

> [can't call setBoolean on char or setString on boolean]
>

This is the expected behavior. The 8.0 release of the JDBC driver
includes strong typing. Previous versions of the driver did simple
string substitution, a = ? was transformed to a = '0' before being sent to
the server. Now it uses a true prepared statement on the server side
which needs the correct types given to it.

Kris Jurka

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Kris Jurka 2004-11-08 01:25:24 Re: 8.0 beta4: Exception when including catalog qualifier in
Previous Message Kris Jurka 2004-11-07 20:15:29 Re: JDBC driver. Class Cast Exception when calling