Subject | Re: ResultSet.next() |
---|---|
Author | Torsten Welches |
Post date | 2000-08-04T11:19:34Z |
--- In IB-Java@egroups.com, "Terry Child" <tmchild@g...> wrote:
ResultSet.next() past the last row. It's up to the implementation.
http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame.html
Reading the Javadocs I, too, would expect to get "false" again rather
then a SQLException, but yes, it's not that clear. The drivers I've
worked with so far (DB2Connect and Oracle Class 3) do return "false".
Torsten
P.S. You might want to file a bug report and let R&D decide what do
do with it.
> 1. Does interclient's behavior conform to the JDBC spec withregards to repeated
> calls to ResultSet.next()? I've looked at the Javadocs but it'sambiguous as to
> what happens. Other JDBC drivers seem to return false again.The JDBC specification does not say anything about repeated
ResultSet.next() past the last row. It's up to the implementation.
http://java.sun.com/j2se/1.3/docs/guide/jdbc/spec/jdbc-spec.frame.html
Reading the Javadocs I, too, would expect to get "false" again rather
then a SQLException, but yes, it's not that clear. The drivers I've
worked with so far (DB2Connect and Oracle Class 3) do return "false".
Torsten
P.S. You might want to file a bug report and let R&D decide what do
do with it.