Skip to content

Commit 1292512

Browse files
committed
Add missing check for predicate in primitive collection simplifications (#3196)
Fixes #3195 (cherry picked from commit 3b71c73)
1 parent a2ce3ee commit 1292512

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/EFCore.PG/Query/Internal/NpgsqlQueryableMethodTranslatingExpressionVisitor.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ protected override Expression ApplyInferredTypeMappings(
542542
Source1:
543543
{
544544
Tables: [PgUnnestExpression { Array: var array1 }],
545+
Predicate: null,
545546
GroupBy: [],
546547
Having: null,
547548
IsDistinct: false,
@@ -551,6 +552,7 @@ protected override Expression ApplyInferredTypeMappings(
551552
Source2:
552553
{
553554
Tables: [PgUnnestExpression { Array: var array2 }],
555+
Predicate: null,
554556
GroupBy: [],
555557
Having: null,
556558
IsDistinct: false,
@@ -667,6 +669,7 @@ protected override Expression ApplyInferredTypeMappings(
667669
&& source.QueryExpression is SelectExpression
668670
{
669671
Tables: [PgUnnestExpression { Array: var array }],
672+
Predicate: null,
670673
GroupBy: [],
671674
Having: null,
672675
IsDistinct: false,
@@ -704,6 +707,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
704707
if (source1.QueryExpression is SelectExpression
705708
{
706709
Tables: [PgUnnestExpression { Array: var array1 } unnestExpression1],
710+
Predicate: null,
707711
GroupBy: [],
708712
Having: null,
709713
IsDistinct: false,
@@ -714,6 +718,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
714718
&& source2.QueryExpression is SelectExpression
715719
{
716720
Tables: [PgUnnestExpression { Array: var array2 }],
721+
Predicate: null,
717722
GroupBy: [],
718723
Having: null,
719724
IsDistinct: false,
@@ -780,6 +785,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
780785
&& source.QueryExpression is SelectExpression
781786
{
782787
Tables: [PgUnnestExpression { Array: var array }],
788+
Predicate: null,
783789
GroupBy: [],
784790
Having: null,
785791
IsDistinct: false,
@@ -907,6 +913,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
907913
if (source.QueryExpression is SelectExpression
908914
{
909915
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
916+
Predicate: null,
910917
GroupBy: [],
911918
Having: null,
912919
IsDistinct: false,
@@ -970,6 +977,7 @@ protected override ShapedQueryExpression TranslateConcat(ShapedQueryExpression s
970977
if (source.QueryExpression is SelectExpression
971978
{
972979
Tables: [PgUnnestExpression { Array: var array } unnestExpression],
980+
Predicate: null,
973981
GroupBy: [],
974982
Having: null,
975983
IsDistinct: false,

0 commit comments

Comments
 (0)