Skip to content

@Query placeholder extracted with extra characters [DATAMONGO-1925] #2824

Closed
@spring-projects-issues

Description

@spring-projects-issues

Weihong Zhang opened DATAMONGO-1925 and commented

@Query(value = "{'myId': ?0,'category':?1}")

This query failed. The root cause is on ExpressionEvaluatingParameterBinder.replacePlaceholders, the first placeholder it extracted is ?0,", but should be ?0. Add a space before the single quote can make this query work:

@Query(value = "{'myId': ?0, 'category':?1}")

Affects: 1.9.11 (Hopper SR11), 1.10.11 (Ingalls SR11)

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions