Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please .... - Mailing list pgsql-jdbc

From Barry Lind
Subject Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....
Date
Msg-id 3AF8B6A2.8090503@xythos.com
Whole thread Raw
In response to Re: Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....
List pgsql-jdbc
Bruce,

You should be able to remove this item from your patches list.  You
applied a patch that fixed the root problem today.  That patch to
org/postgresql/jdbc1/Statement.java added a missing parenthesis.  That
fixes the bug.  The further sugestion in the below mail note (to declare
the object as a org.postgresql.ResultSet instead of the 11 casts) is a
different way to fix the same problem.  But since the bug is fixed I
don't see a reason to keep this item on the patches list.

thanks,
--Barry

Bruce Momjian wrote:

>>> Comments?
>>
>> The extra parenthesis are required (since java.sql.ResultSet doesn't
>> have a method 'reallyResultSet()' which returns an object which can be
>> succesfully cast as a 'org.postgresql.ResultSet), but I think it would be
>> cleaner just to declare 'result' as 'org.postgresql.ResultSet' on line 27,
>> that way none of the messy casts (of which there are 11) would be
>> required..
>
>
> I can apply a patch, but it is beyond my ability to code that.
>


pgsql-jdbc by date:

Previous
From: Palle Girgensohn
Date:
Subject: Re: Re: [INTERFACES] Trouble with JDBC2 ResultSet.getDate()
Next
From: Bruce Momjian
Date:
Subject: Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....