[CONJ-24] NullPointerException is thrown when ResultSet.first() is invoked on "streaming" result set Created: 2013-02-14  Updated: 2013-02-27  Resolved: 2013-02-27

Status: Closed
Project: MariaDB Connector/J
Component/s: None
Affects Version/s: 1.1.0
Fix Version/s: 1.1.1

Type: Bug Priority: Minor
Reporter: Vladislav Vaintroub Assignee: Vladislav Vaintroub
Resolution: Fixed Votes: 0
Labels: None


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

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


Generated at Thu Feb 08 03:12:36 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.