[jdbc-v2] Fix ArrayResultSet after-last cursor state

Open Beginner friendly
#3,143 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
68/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
java
Domain
database

Research direction

Locate the array-backed ResultSet implementation, likely named ArrayResultSet, and inspect its next() and isAfterLast() behavior. Compare the implementation with the JDBC cursor contract, then run or add focused tests covering next() after the final array element. Done means a false next() result leaves isAfterLast() false as specified.

Written by the indexing model from the issue text.

Description

Description

ResultSet that is built around an array handles next() call incorrectly. JDBC documentation states that call should progress further and if next() returns false then isAfterLast also should return false.

Dominant language
Java
Stars
1.6k
Forks
637
Avg merge
2d 12h
Merged PRs (30d)
28

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from ClickHouse/clickhouse-java

All issues in ClickHouse/clickhouse-java

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.