Re: Is it safe to use 8.0.14 server and 7.4 driver ? - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Is it safe to use 8.0.14 server and 7.4 driver ?
Date
Msg-id 4789430B.1070003@opencloud.com
Whole thread Raw
In response to Is it safe to use 8.0.14 server and 7.4 driver ?  (Daniel Henrique Alves Lima <email_daniel_h@yahoo.com.br>)
Responses Re: Is it safe to use 8.0.14 server and 7.4 driver ?  (Magne Mæhre <Magne.Mahre@Sun.COM>)
List pgsql-jdbc
Daniel Henrique Alves Lima wrote:
> The only way that i found to avoid break old applications is to
> use the driver pg74.216.jdbc3.jar (the driver
> pg73jdbc3.jar has a "set autocommit" issue) to access a 8.0.14 server.

This may or may not work but it's not supported.

>     Which one of these behaviors is the right one ? Thanks in advance  !

Both are equally correct, I believe. I think the JDBC spec is silent
about which column you get back if there is ambiguity.

The difference is because earlier drivers did a simple search through
the resultset column names on every access while newer drivers populate
a map of column names -> column indexes once. Doing a search every time
has performance problems.

I think your only hope is to change the query so the column names of the
resultset are not ambiguous.

-O

pgsql-jdbc by date:

Previous
From: Silvio Bierman
Date:
Subject: Howto set UUID parameter for PGSQL 8.3rc1 / postgresql-8.3dev-602.jdbc3.jar
Next
From: Andrew Lazarus
Date:
Subject: Re: Update ResultSet