Closed GoogleCodeExporter closed 8 years ago
Please provide a simple, reproducible test case.
Original comment by thomas.t...@gmail.com
on 26 Sep 2013 at 10:08
I wrote a small test case and found out that the problem was really mostly in
my code. I thought that after the absolute() call I have to call next(),
similar to a freshly created ResultSet. So in my own code the following calls
resulted in what I expected:
resultSet.absolute(0);
resultSet.next();
That is the first row. But this should really have been just:
resultSet.absolute(1)
Without the call to next(). Oracle throws an exception on absolute(0) and it
would have helped me to find my own bug if H2 had thrown a similar exception. I
leave it up to you whether that's an important enough issue or not ;-)
Original comment by eike.ste...@googlemail.com
on 26 Sep 2013 at 10:37
OK I see. I will check what other databases do on rs.absolute(0), and the JDBC
specification. Thanks a lot!
Original comment by thomas.t...@gmail.com
on 26 Sep 2013 at 11:43
Original comment by thomas.t...@gmail.com
on 19 Oct 2013 at 8:40
The JDBC spec says "If the row number specified is zero, the cursor is moved to
before the first row."
See also
http://docs.oracle.com/javase/7/docs/api/java/sql/ResultSet.html#absolute(int)
So I set this issue to "Invalid" for now.
Original comment by thomas.t...@gmail.com
on 14 Dec 2013 at 7:36
Original issue reported on code.google.com by
eike.ste...@googlemail.com
on 26 Sep 2013 at 9:27