Skip to content

fix: replace Cosmos DB LIKE with CONTAINS for SQL compatibility (#515)#527

Open
dennismdejong wants to merge 1 commit into
PacoVK:mainfrom
dennismdejong:fix/upstream-515-cosmosdb-query-syntax
Open

fix: replace Cosmos DB LIKE with CONTAINS for SQL compatibility (#515)#527
dennismdejong wants to merge 1 commit into
PacoVK:mainfrom
dennismdejong:fix/upstream-515-cosmosdb-query-syntax

Conversation

@dennismdejong

Copy link
Copy Markdown

Fixes #515

Cosmos DB SQL API does not support LIKE queries with parameterized patterns containing % wildcards. Replaced LIKE with CONTAINS() and removed the % wildcards from parameter values, as CONTAINS does substring matching by default. Applied to findModules, findProviders, and findDeployKeys queries.

…VK#515)

Cosmos DB SQL API does not support LIKE queries with parameterized
patterns containing % wildcards. Replaced LIKE with CONTAINS() and
removed the % wildcards from parameter values, as CONTAINS does
substring matching by default. Applied to findModules, findProviders,
and findDeployKeys queries.

Fixes PacoVK#515
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Cosmos DB Query Syntax Error: Invalid Parameter Syntax

1 participant