Skip to content

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?

@edigonzales
Copy link

edigonzales commented Dec 23, 2024

Hi @Mause, since i run into this bug: which other class did you mean? Or are there other reasons it won't get merged?

staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Apr 3, 2025
This change brings in the duckdb#43 PR with additional changes to the
`Array` result set requested by the reviewer in duckdb#43.

For the `Array` result set the column names `INDEX` and `VALUE` are
taken from the implementation in Postgres' `pgjdbc` driver.

Testing: test from duckdb#43 is included, test for `Array` result set is
enhanced with additional checks.

Fixes: duckdb#40

Co-authored-by: jghoman <[email protected]>
@staticlibs
Copy link
Collaborator

@jghoman

Thanks for the PR! I've included it as-is into #185 also adding there the requested changes to the Array result set. Including you as a co-author to that PR.

@elefeint

I wonder if you would like to take a look at the changes to DuckDBArrayResultSet (as the original author of this bit)? The changes there are mostly mechanical, but one change of getLong to not call getInt actually changes the possible output for long values.

@staticlibs
Copy link
Collaborator

The changes from this PR were included into #185 PR, closing this PR as superseded.

@staticlibs staticlibs closed this Apr 7, 2025
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Apr 7, 2025
This change brings in the duckdb#43 PR with additional changes to the
`Array` result set requested by the reviewer in duckdb#43.

For the `Array` result set the column names `INDEX` and `VALUE` are
taken from the implementation in Postgres' `pgjdbc` driver.

Testing: test from duckdb#43 is included, test for `Array` result set is
enhanced with additional checks.

Fixes: duckdb#40

Co-authored-by: jghoman <[email protected]>
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
4 participants