You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Query: Cross join with table having TPH mapping causes discriminator to be ignored producing incorrect results #8375
SELECT [g].[Nickname] AS [Nickname1], [o].[Nickname] AS [Nickname2]
FROM [Gear] AS [g]
CROSS JOIN [Gear] AS [o]
WHERE [g].[Discriminator] IN (N'Officer', N'Gear') AND (([g].[Nickname] = [o].[Nickname]) AND ([g].[SquadId] = [o].[SquadId]))
ORDER BY [Nickname1]
discriminator predicate for Officer in the second collection is being ignored so we return too many results
changed the title [-]Query: incorrect results returned for some queries with cross product and inheritance/predicate[/-][+]Query: Cross join with table having TPH mapping causes discriminator to be ignored producing incorrect results[/+]on May 5, 2017
Activity
[-]Query: incorrect results returned for some queries with cross product and inheritance/predicate[/-][+]Query: Cross join with table having TPH mapping causes discriminator to be ignored producing incorrect results[/+]smitpatel commentedon Jun 23, 2017
#8094 would fix this too.
15 remaining items
smitpatel commentedon Sep 9, 2019
Fixed in #17724