We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
It is possible to pass an array as parameter? The query bellow returns the error: Error: Operand should contain 1 column(s).
Error: Operand should contain 1 column(s)
const ids = [1, 2, 3]; return client.query('SELECT * FROM mytable WHERE id in (?)', [ids]);
The text was updated successfully, but these errors were encountered:
Try it without the parentheses
const ids = [1, 2, 3]; return client.query('SELECT * FROM mytable WHERE id in ?', [ids]);
Sorry, something went wrong.
Thanks for your feedback.
Without the parenthesis works, but I have some problems:
SELECT * FROM mytable WHERE id in ?
SELECT * FROM mytable WHERE id in (99, 100, ?)
I am using this library in my project (typesql) where I parse the query following the MySQL grammar.
No branches or pull requests
Hello,
It is possible to pass an array as parameter?
The query bellow returns the error:
Error: Operand should contain 1 column(s)
.The text was updated successfully, but these errors were encountered: