Re: Found a problem with 8.2-508 JDBC 4

From: "Campbell, Lance" <lance(at)illinois(dot)edu>
To: "Kris Jurka" <books(at)ejurka(dot)com>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Found a problem with 8.2-508 JDBC 4
Date: 2008-09-11 17:30:50
Message-ID: B10E6810AC2A2F4EA7550D072CDE876001D20926@SAB-FENWICK.sab.uiuc.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris,
Thank you very much for identifying this. I even found that I had a
problem with my data model because of this issue.

Thanks,

Lance

-----Original Message-----
From: Kris Jurka [mailto:books(at)ejurka(dot)com]
Sent: Thursday, September 11, 2008 12:19 PM
To: Campbell, Lance
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Found a problem with 8.2-508 JDBC 4

On Thu, 11 Sep 2008, Campbell, Lance wrote:

> When the below SQL is executed the result set returns the value of
> "null" for the field "calendar_name". When I use driver "8.2-506 JDBC
> 4" and "8.2-507 JDBC 4" it work correctly and I get a valid value.
>
> SELECT ...,
> event.*,
> calendar.name as calendar_name

Evidently event.* contains a field called calendar name and you're
getting
bitten by this change (from the 508 changelog):

The JDBC spec says that when you have two duplicately named
columns in a ResultSet, a search by name should return the
first one. Previously our code was returning the second match.
(jurka) Thanks to Magne Mahre.

Kris Jurka

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2008-09-11 17:36:32 Re: scale parameter to setObject method
Previous Message Kris Jurka 2008-09-11 17:28:21 Re: looking for a jdbc method.