opensearch-project / opensearch-project/sql-odbc

ODBC driver does not recognize its support for conversions[BUG]

Open
#17 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
C++
Stars
10
Forks
25
PR merge metrics
No merged PRs in 30d

Description

Describe the bug
ODBC driver does not recognize its support for conversions of any types. The SQL plugin supports casting of different types and should be reflected by the ODBC driver.

To Reproduce
Steps to reproduce the behavior:

  1. Install the ODBC driver from https://github.com/opensearch-project/sql/actions/runs/1555197058
  2. Open ODBCTest
  3. Click on the Conn button
  4. Select SQLGetInfo
  5. Select SQL_CONVERT_INTEGER=61 (1.0) for info type
  6. See the result InfoValuePtr = 0x00000000

Expected behavior
Should not be 0 as that represents unsupported.

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 reproducing the SQLGetInfo query for SQL_CONVERT_INTEGER=61 described in the issue, then trace how the ODBC driver reports conversion support. Done means the result is no longer 0 and reflects the SQL plugin's supported casts; verify the behavior through the same ODBCTest steps.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp, sql
Domain
databases
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.