Skip to content

Commit

Permalink
Another tiny fix to #32911
Browse files Browse the repository at this point in the history
  • Loading branch information
maumar committed Mar 1, 2024
1 parent 52f37b3 commit b68644f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2128,7 +2128,7 @@ public void ApplyUnion(SelectExpression source2, bool distinct)
// If the top-level projection - not the current nested one - is a complex type and not an entity type, then add
// all its columns to the "otherExpressions" list (i.e. columns not part of a an entity primary key). This is
// the same as with a non-structural type projection.
else if (type is IComplexType)
else if (projection1.StructuralType is IComplexType)
{
var outerTypeMapping = column1.TypeMapping ?? column1.TypeMapping;
if (outerTypeMapping == null)
Expand Down

0 comments on commit b68644f

Please sign in to comment.