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

query param use array: SELECT...in ( array) #20

Open
kekxv opened this issue Jun 22, 2023 · 2 comments
Open

query param use array: SELECT...in ( array) #20

kekxv opened this issue Jun 22, 2023 · 2 comments

Comments

@kekxv
Copy link

kekxv commented Jun 22, 2023

How to do it:

SELECT * FROM users WHERE username in (:usernames);

:usernames is array

@samjayhk
Copy link

Have you found the solution?

@samjayhk
Copy link

samjayhk commented Jan 31, 2025

Dear @lganzzzo

Thanks for your great work!

I'm encountering an issue with the IN() command in oatpp-SQLite. It seems that currently, there is no way to insert string parameters that are not supported by the scope (such as "12,14,15" for IN()), whether using the IN() command or simply using the OR command. However, if I hardcode the QUERY command with IN() or OR, it works as expected.

Is there a workaround or a recommended approach to handle this issue?

Thank.

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

2 participants