Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove duplicate resultSet field from PreparedStatement #246

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

ryn5
Copy link
Contributor

@ryn5 ryn5 commented Jan 19, 2024

Summary

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.

Related Issue

#235

Additional Reviewers

Copy link
Contributor

@Cole-Greer Cole-Greer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks Ryan, LGTM

@Cole-Greer Cole-Greer merged commit 61c5b77 into aws:develop Jan 22, 2024
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants