Statement is extended by PreparedStatement, and both classes currently have a field ResultSet resultSet. This led to the unexpected behaviour in #235 where getResultSet() would return null despite the statement having a valid resultSet.
Description
Changed resultSet in Statement from private to protected and removed the extra field from PreparedStatement so that it can inherit the field instead.
Summary
Statement is extended by PreparedStatement, and both classes currently have a field
ResultSet resultSet
. This led to the unexpected behaviour in #235 wheregetResultSet()
would return null despite the statement having a valid resultSet.Description
Changed resultSet in Statement from private to protected and removed the extra field from PreparedStatement so that it can inherit the field instead.
Related Issue
https://github.com/aws/amazon-neptune-jdbc-driver/issues/235
Additional Reviewers