opensearch-project / opensearch-project/sql-jdbc
[BUG] ResultSet.getTime(index, calendar) returns null
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 28
- Forks
- 39
- PR merge metrics
- No merged PRs in 30d
Description
What is the bug?
Retrieving time with a calendar always returns null.
How can one reproduce the bug?
Steps to reproduce the behavior:
- Have some time data
- Invoke ResultSet.getTime(index, calendar) to try and get the time
- See null as the result, always
Looking at the code, it's simply hardcoded to return null.
What is the expected behavior?
A non-null value reflecting the retrieved time.
What is your host/environment?
- OS: macOS
- Version JDBC 1.1.0.1
- Plugins
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the ResultSet.getTime(index, calendar) implementation in the JDBC driver and inspect how related time retrieval methods handle calendar values. Reproduce the issue with time data, then verify that the method returns a non-null value reflecting the retrieved time.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, sql
- Domain
- database
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100