Skip to content

Conversation

@roji
Copy link
Member

@roji roji commented Aug 18, 2025

Test-only fixes that came out of synchronizing the PostgreSQL providers (plus a couple of cosmetic-only product code changes) - tell mode for rc.2.

/cc @artl93

@roji roji requested a review from a team as a code owner August 18, 2025 16:45
@roji roji enabled auto-merge (squash) August 18, 2025 16:45
@roji roji changed the title [TESTS] Complex type test fixes [RC2, TESTS] Complex type test fixes Aug 18, 2025
@roji roji added the tell-mode label Aug 18, 2025
OFFSET 0 ROWS FETCH NEXT 1 ROWS ONLY) = 8
ORDER BY [r].[Id], [o].[RootEntityId], [o0].[RelatedTypeRootEntityId], [o1].[RelatedTypeRootEntityId], [r1].[RootEntityId], [r2].[RelatedTypeRootEntityId], [r3].[RelatedTypeRootEntityId], [o2].[RelatedTypeRootEntityId], [o2].[Id], [s].[RootEntityId], [s].[Id], [s].[RelatedTypeRootEntityId], [s].[RelatedTypeId], [s].[RelatedTypeRootEntityId0], [s].[RelatedTypeId0], [s].[RelatedTypeRootEntityId1], [s].[RelatedTypeId1], [s].[Id0], [r8].[RelatedTypeRootEntityId]
""");
AssertSql();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did the SQL go?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the context of this suite (non-JSON owned navigations), the test uses non-deterministic ordering (indexing without previous OrderBy). Now, there was a bug (which this PR fixes) which caused the "non-deterministic query" error to not be thrown, and the test happened to pass on SQL Server, but it failed on PostgreSQL because the ordering was different. After this PR, the base implementation of this test for non-JSON owned navigations ensures that the error is thrown, and so no SQL gets generated.

@roji roji merged commit 59ebfcb into dotnet:release/10.0 Aug 19, 2025
7 checks passed
@roji roji deleted the MinorFixes branch August 19, 2025 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants