SAP / SAP/node-hdb

prepared statement having multiple in clause

Open
#118 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
322
Forks
99
PR merge metrics
No merged PRs in 30d

Description

I have array object A1= [,1,2,3,4,5,6] and A2=[6,8,9,7,4]

How can I pass to prepared statement having multiple in clause . With single In clause its working .

In multiple in clause how do I can pass multiple array object , I tried passing parameter as [ A1,A2] but failed .

SELECT * FROM "schema"."table" WHERE "c1" IN (?) AND "c2" IN (?)"

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 reviewing node-hdb's prepared statement handling for the shown SQL query with two IN clauses and compare it with the single-IN case described in the issue. Done means determining how multiple array parameters should be passed, or documenting that this form is unsupported and what the supported usage is.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, sql
Domain
databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.