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 placeholders in keys no longer correctly substituted [DATAMONGO-1072] #1992

Closed
spring-projects-issues opened this issue Oct 14, 2014 · 0 comments

Comments

@spring-projects-issues
Copy link

@spring-projects-issues spring-projects-issues commented Oct 14, 2014

Jen Wilson opened DATAMONGO-1072 and commented

Between 1.5.1.RELEASE and 1.5.2.RELEASE, processing of query parameters for keys was broken. Example, this query:

@Query("{?0 : ?1}")
List<T> findAllByKeyValue(String key, String value);

When called with these parameters:

findAllByKeyValue("name", "Joe");

becomes this with 1.5.1: \{"name" : "Joe"\}

But with 1.5.2, the ?0 is not correctly substituted so this is the broken query that is created: \{"?0" : "Joe"\}


Affects: 1.5.2 (Dijkstra SR2), 1.6 GA (Evans), 1.7 M1 (Fowler)

Issue Links:

  • DATAMONGO-420 Extra quotes being added to @Query values and fields

Referenced from: pull request #233

Backported to: 1.6.1 (Evans SR1), 1.5.5 (Dijkstra 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