Skip to content

Commit

Permalink
Potential fix for Elfocrash#106 but don't really know the impact
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Rees committed Jul 29, 2019
1 parent 279d9f0 commit c911f45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Cosmonaut/Extensions/CosmosSqlQueryExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,10 @@ private static string GetQueryWithExistingWhereClauseInjectedWithSharedCollectio
var secondPartQuery = splitQuery[1];
var sharedCollectionExpressionQuery =
$"{identifier}.{nameof(ISharedCosmosEntity.CosmosEntityName)} = '{cosmosEntityNameValue}'";
if (splitQuery.Length == 3)
{
return $"{firstPartQuery} where {sharedCollectionExpressionQuery} and {secondPartQuery} where {splitQuery[2]}";
}
return $"{firstPartQuery} where {sharedCollectionExpressionQuery} and {secondPartQuery}";
}

Expand Down

0 comments on commit c911f45

Please sign in to comment.