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.setFilter() does not reset parameter requirements #21

Closed
tzaeschke opened this issue Sep 5, 2013 · 0 comments
Closed

query.setFilter() does not reset parameter requirements #21

tzaeschke opened this issue Sep 5, 2013 · 0 comments
Labels

Comments

@tzaeschke
Copy link
Owner

This fails:

Query q = pm.newQuery(TestClass.class, "_int == :x");
q.setFilter("_int == 123");
q.execute();

with:

javax.jdo.JDOUserException: Too few arguments given, parameter count: 1
    at org.zoodb.jdo.QueryImpl.checkParamCount(QueryImpl.java:489)
    at org.zoodb.jdo.QueryImpl.execute(QueryImpl.java:567)

But it should not fail.
See
Test_122_QueryBugs.testSetFilterForParameters()

tzaeschke added a commit that referenced this issue Sep 5, 2013
tzaeschke added a commit that referenced this issue Sep 18, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant