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

N1qlQueryCreator - IN, NOT IN should not cast parameter to Object[] [DATACOUCH-603] #911

Closed
spring-projects-issues opened this issue Aug 12, 2020 · 0 comments
Assignees

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Aug 12, 2020

Michael Reiche opened DATACOUCH-603 and commented

N1qlQueryCreator - IN, NOT IN should not cast parameter to Object[]

List<> and JsonArray should be acceptable as well.   The code should just pass in the argument without any cast and let ParameterAccessor handle it.

case IN:
return criteria.in((Object[]) parameters.next());
case NOT_IN:
return criteria.notIn((Object[]) parameters.next());


Referenced from: pull request #263

Backported to: 4.0.5 (Neumann SR5)

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.