microsoft / spring-data-cosmosdb

Access data with Azure Cosmos DB
MIT License
94 stars 64 forks source link

Added prefixes to query parameters. Resolves issue #537. #538

Closed mkarczewski85 closed 4 years ago

mkarczewski85 commented 4 years ago

Fix: added prefixes to query parameters names generated for CriteriaType.BETWEEN. Parameters names should be unique, otherwise CosmosClientException is thrown with error: "Invalid query. Specified duplicate parameter name '@start'."

Addresses this issue : https://github.com/microsoft/spring-data-cosmosdb/issues/537

kushagraThapar commented 4 years ago

/azp run

azure-pipelines[bot] commented 4 years ago
No pipelines are associated with this pull request.
kushagraThapar commented 4 years ago

@mkarczewski85 - Thanks for the PR, as I mentioned earlier, this will fix the issue in master branch (which is version 2.3.0) If you are using any other version of the spring-data-cosmosdb SDK - please create the PR for that version against branch v2.2.x or v2.1.x depending on what version you are using.