We're updating the issue view to help you get more done.Learn more

NullPointerException is thrown when ResultSet.first() is invoked on "streaming" result set

Trying to invoke method first() on streaming result set results in NullPointerException. It should be SQLException telling that according to JDBC spec FORWARD_ONLY cursor does not match well with first()

1 2 3 4 stmt.setFetchSize(Integer.MIN_VALUE); rs = stmt.executeQuery("SELECT dt FROM timeStamps"); rs.first(); ts = rs.getTimestamp(1);

Status

Assignee

Vladislav Vaintroub

Reporter

Vladislav Vaintroub

Time estimate

0m

Fix versions

Affects versions

1.1.0

Priority

Minor