Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....

From: Michael Stephenson <mstephenson(at)tirin(dot)openworld(dot)co(dot)uk>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: AGAIN: still no answer ... peter, or anybody knowledgeable, please ....
Date: 2001-05-08 15:22:22
Message-ID: Pine.LNX.4.30.0105081616310.18214-100000@tirin.openworld.co.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

> The current CVS sources look wrong to me. It has:
>
> if (result != null) && ((org.postgresql.ResultSet)result.reallyResultSet())
>
> Shouldn't this be:
>
> if (result != null && ((org.postgresql.ResultSet)result.reallyResultSet()))
>
> Not sure if the extra parens are needed for:
>
> if (result != null && ((org.postgresql.ResultSet)result).reallyResultSet())
>
> 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..

Michael xxx

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Palle Girgensohn 2001-05-08 15:31:27 Re: AGAIN: still no answer ... peter, or anybody knowledgeable,please ....
Previous Message Juhan-Peep Ernits 2001-05-08 15:20:40 Re: [JDBC] Re: Trouble with JDBC2 ResultSet.getDate()