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

Fix 308: Statements with same ConnectionProxy should be distinct #310

Closed
wants to merge 1 commit into from

Conversation

buitcj
Copy link
Contributor

@buitcj buitcj commented Nov 14, 2022

Fix hashCode and equals methods for ClientPreparedStatements created by the same ConnectionProxy. Distinct Statements that share the same ConnectionProxy should not have the same hash code value and should not be equal via the equals() method.

Summary

See #308

Fix hashCode and equals methods for ClientPreparedStatements created by the same ConnectionProxy. Distinct Statements that share the same ConnectionProxy should not have the same hash code value and should not be equal via the equals() method.

Description

Removed code to use the equals and hashcode implementations of the ConnectionProxy object and instead deferring to the underlying object's implementation.

Additional Reviewers

Fix hashCode and equals methods for ClientPreparedStatements
created by the same ConnectionProxy. Distinct Statements that share the
same ConnectionProxy should not have the same hash code value and should
not be equal via the equals() method.
@buitcj
Copy link
Contributor Author

buitcj commented Nov 14, 2022

No unit tests added because mockito doesn't allow for mocking equals and hashCode

@buitcj buitcj closed this Nov 15, 2022
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