Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepared statement with IN clause: Passing array as of the parameters in values array does not work. #142

Open
mayurbangar opened this issue Mar 21, 2024 · 0 comments

Comments

@mayurbangar
Copy link

Query:
SELECT * FROM TABLE WHERE lastName=? and firstName IN (?)

Values:
['Smith', ['John', 'Joe', 'Jon']]

Final query that runs in db is -
SELECT * FROM TABLE WHERE lastName='Smith' and firstName in ('{{John,Joe,John}}')

Expected query -
SELECT * FROM TABLE WHERE lastName='Smith' and firstName in ('John', 'Joe', 'Jon')

There was a function Vertica.quote in the vertica driver (https://www.npmjs.com/package/vertica) which used to work as expected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant