Skip to content

Commit

Permalink
Add missing check for predicate in primitive collection simplificatio…
Browse files Browse the repository at this point in the history
…ns (#3196)

Fixes #3195
  • Loading branch information
roji authored Jun 8, 2024
1 parent 6b3ca68 commit 3b71c73
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,7 @@ static IEnumerable<INavigation> GetAllNavigationsInHierarchy(IEntityType entityT
Source1:
{
Tables: [PgUnnestExpression { Array: var array1 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand All @@ -560,6 +561,7 @@ static IEnumerable<INavigation> GetAllNavigationsInHierarchy(IEntityType entityT
Source2:
{
Tables: [PgUnnestExpression { Array: var array2 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -676,6 +678,7 @@ static IEnumerable<INavigation> GetAllNavigationsInHierarchy(IEntityType entityT
&& source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -715,6 +718,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
if (source1.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array1 } unnestExpression1],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand All @@ -725,6 +729,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
&& source2.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array2 }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -788,6 +793,7 @@ [new PgUnnestExpression(tableAlias, _sqlExpressionFactory.Add(array1, array2), "
&& source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array }],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -918,6 +924,7 @@ [new PgUnnestExpression(tableAlias, _sqlExpressionFactory.Add(array1, array2), "
if (source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down Expand Up @@ -980,6 +987,7 @@ [new PgUnnestExpression(tableAlias, _sqlExpressionFactory.Add(array1, array2), "
if (source.QueryExpression is SelectExpression
{
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
Predicate: null,
GroupBy: [],
Having: null,
IsDistinct: false,
Expand Down

0 comments on commit 3b71c73

Please sign in to comment.