opensearch-project / opensearch-project/sql-jdbc

[BUG] ResultSet.getTime(index, calendar) returns null

Open
#20 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
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:

  1. Have some time data
  2. Invoke ResultSet.getTime(index, calendar) to try and get the time
  3. 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

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.