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

Make result set getColumn by name case insensitive. Add test for same. #43

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jghoman
Copy link
Contributor

@jghoman jghoman commented Jun 24, 2024

Fixes #40 . Adds unit test both for column names from resultset as well as tablename itself, since we're already there.

This uses equalsIgnoreCase rather than the previous `contentEquals,' which is ever so slightly different (String to String versus String to CharSequence/String/StringBuffer, respectively), but I think that shouldn't make a difference in these use cases.

Copy link
Member

@Mause Mause left a comment

Choose a reason for hiding this comment

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

Looks great!

While you're at it, would you be able to fix the other findColumn in the other class?

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.

Add case-insensitive getters on resultSet
2 participants