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

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

Description

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);

Environment

None

Status

Assignee

Vladislav Vaintroub

Reporter

Vladislav Vaintroub

Labels

None

External issue ID

None

External issue ID

None

Time tracking

0m

Fix versions

Affects versions

1.1.0

Priority

Minor