Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect NOLOCK position in queries where there is no table alias #8783

Merged
merged 3 commits into from
Apr 11, 2024

Conversation

AndreaPiovanelli
Copy link
Contributor

In reference to issue #8782 , "WITH(NOLOCK)" clause is now placed after the table name if there is no alias provided for the table but before the "WHERE" clause.

@BenedekFarkas BenedekFarkas linked an issue Apr 11, 2024 that may be closed by this pull request
src/Orchard/Data/NoLockInterceptor.cs Outdated Show resolved Hide resolved
src/Orchard/Data/NoLockInterceptor.cs Outdated Show resolved Hide resolved
@BenedekFarkas
Copy link
Member

BenedekFarkas commented Apr 11, 2024

I can't speak to the PR functionality-wise and as far as I can see there aren't any tests that would cover it (any chance you could add some?). Code-wise good to go from me!

@BenedekFarkas BenedekFarkas merged commit e243e8e into OrchardCMS:dev Apr 11, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

NOLOCK interceptor fails in "exists" subqueries
3 participants